Skip to content

Commit

Permalink
#55 - Do not set RequestHeaders, not required when using phpfpm directly
Browse files Browse the repository at this point in the history
  • Loading branch information
johanjanssens committed May 30, 2022
1 parent ce671ea commit f4f047e
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions config/apache/macros/site.conf
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,6 @@
# Include additional directives
IncludeOptional ${APP_ROOT}/sites/*/config/apache/directory.conf

# https://httpd.apache.org/docs/2.4/rewrite/proxy.html
RequestHeader set X-Forwarded-Proto expr=%{REQUEST_SCHEME}

<If "%{REQUEST_SCHEME} == 'https'">
RequestHeader set X-Forwarded-Port expr=${APP_HTTPS}
</If>
<Else>
RequestHeader set X-Forwarded-Port expr=${APP_HTTP}
</Else>

<FilesMatch \.php$>
SetHandler "proxy:fcgi://127.0.0.1:9000/"
</FilesMatch>
Expand Down

0 comments on commit f4f047e

Please sign in to comment.