Skip to content

Commit

Permalink
Add documentation based on reverse proxies and timezone settings
Browse files Browse the repository at this point in the history
  • Loading branch information
lochmueller committed Dec 4, 2024
1 parent e2f6955 commit 8f3ed5b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Documentation/Configuration/Htaccess.rst
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@ variables (SFC_ROOT, SFC_GZIP) and read the comments carefully.
RewriteCond %{HTTP:X-Tx-Solr-Iq} .+
RewriteRule .* - [E=SFC_HOST:invalid-host]
# Important Note for scheme and port. TYPO3 handle Reverse proxies by respect
# X-Forwarded-For headers. The Apache do not know this configuration. If there
# is a reverse proxy that e.g. terminate SSL and all requests are "http", please
# Adapt the following lines to force "http".
# Get scheme
RewriteRule .* - [E=SFC_PROTOCOL:http]
RewriteCond %{SERVER_PORT} ^443$ [OR]
Expand Down
4 changes: 4 additions & 0 deletions Resources/Private/Templates/Htaccess.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@
<f:comment>
Explicitly prevent direct access here. This is needed because the .htaccess
access check in the root dir is overwritten by the RewriteRules defined here.

Important: The Timezone of the TIME variable is based on your server timezone and
the timezone of the ViewHelper is based on the typo3 configured timezone. Please keep
in mind that this is in sync!
</f:comment>
RewriteCond %{ENV:REDIRECT_STATUS} ^$
RewriteRule .* - [F,L]
Expand Down

0 comments on commit 8f3ed5b

Please sign in to comment.