fix: preserve HTTPS behind Apache proxy
This commit is contained in:
@@ -171,11 +171,14 @@ LoadModule proxy_fcgi_module modules/mod_proxy_fcgi.so
|
|||||||
LoadModule rewrite_module modules/mod_rewrite.so
|
LoadModule rewrite_module modules/mod_rewrite.so
|
||||||
LoadModule unixd_module modules/mod_unixd.so
|
LoadModule unixd_module modules/mod_unixd.so
|
||||||
LoadModule log_config_module modules/mod_log_config.so
|
LoadModule log_config_module modules/mod_log_config.so
|
||||||
|
LoadModule setenvif_module modules/mod_setenvif.so
|
||||||
User daemon
|
User daemon
|
||||||
Group daemon
|
Group daemon
|
||||||
ServerName localhost
|
ServerName localhost
|
||||||
DocumentRoot "${webroot}"
|
DocumentRoot "${webroot}"
|
||||||
DirectoryIndex index.php index.html
|
DirectoryIndex index.php index.html
|
||||||
|
SetEnvIf X-Forwarded-Proto "^https$" HTTPS=on
|
||||||
|
SetEnvIf X-Forwarded-Port "^443$" SERVER_PORT=443
|
||||||
<Directory "${webroot}">
|
<Directory "${webroot}">
|
||||||
Options Indexes FollowSymLinks
|
Options Indexes FollowSymLinks
|
||||||
AllowOverride All
|
AllowOverride All
|
||||||
|
|||||||
Reference in New Issue
Block a user