Bug #58358
closedUse REDIRECT_TYPO3_CONTEXT as fallback for TYPO3_CONTEXT environment variable
0%
Description
On certain server setups, setting ApplicationContext fails, because the environment variable TYPO3_CONTEXT is never set.
The reason is that variables set by mod_rewrite get prefixed with REDIRECT_
This seems to appear in PHP-FPM setups, which is quite popular these days.
htaccess file: RewriteCond %{HTTP_HOST} ^dev\.example\.com$ RewriteRule (.*) $1 [E=TYPO3_CONTEXT:Development]
Test: echo $_SERVER['TYPO3_CONTEXT']; echo $_SERVER['REDIRECT_TYPO3_CONTEXT']; Development
Flow solves this by using REDIRECT_FLOW3_CONTEXT as fallback in index.php:
$context = getenv('FLOW3_CONTEXT') ?: (getenv('REDIRECT_FLOW3_CONTEXT') ?: 'Development');
We should backport this fallback to Bootstrap.
Updated by Gerrit Code Review over 10 years ago
- Status changed from Closed to Under Review
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/29742
Updated by Steffen Müller over 10 years ago
Sorry Helmut, I pushed without noticing the duplicate.
Nevertheless, please don't close issues which are duplicates of yet unresolved. AFAIK the policy was to leave dups until the parent issue was resolved and then close all dups.
Beside that, I don't agree this is a duplicate, but rather an issue which is related to the parent. the pending solution of the parent does not fix this issue.
Updated by Steffen Müller over 10 years ago
- Status changed from Under Review to Needs Feedback
Updated by Gerrit Code Review over 10 years ago
- Status changed from Needs Feedback to Under Review
Patch set 6 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/25123
Updated by Gerrit Code Review over 10 years ago
Patch set 8 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/25123
Updated by Gerrit Code Review over 10 years ago
Patch set 9 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/25123
Updated by Steffen Müller over 10 years ago
- Status changed from Under Review to Closed
Updated by Benni Mack over 1 year ago
- Related to Feature #91798: Use REDIRECT_TYPO3_PATH_APP - REDIRECT_TYPO3_PATH_ROOT as fallback for TYPO3_PATH_APP - TYPO3_PATH_ROOT environment variable added