Updated the reverse proxy instructions for Apache2

The request headers are set incorrectly according to the documentation. 

This fixes the doc.
This commit is contained in:
monksy 2025-12-25 16:59:41 -06:00 committed by GitHub
parent c8242ce902
commit d8a56ec126
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -111,12 +111,11 @@ With the above commands entered, the configuration below should work properly.
<Proxy *>
Require all granted
</Proxy>
Header always set X-Real-IP %{REMOTE_ADDR}s
Header always set X-Forwarded-For %{REMOTE_ADDR}s
Header always set X-Forwarded-Proto https
Header always set X-Forwarded-Server %{SERVER_NAME}s
Header always set Host %{HTTP_HOST}s
RequestHeader set X-Real-IP %{REMOTE_ADDR}s
RequestHeader set X-Forwarded-For %{REMOTE_ADDR}s
RequestHeader set X-Forwarded-Proto https
RequestHeader set X-Forwarded-Server %{SERVER_NAME}s
RequestHeader set Host %{HTTP_HOST}s
SetOutputFilter BROTLI
AddOutputFilterByType BROTLI_COMPRESS text/css text/plain text/xml text/javascript application/javascript application/json application/manifest+json application/vnd.api+json application/xml application/xhtml+xml application/rss+xml application/atom+xml application/vnd.ms-fontobject application/x-font-ttf application/x-font-opentype application/x-font-truetype image/svg+xml image/x-icon image/vnd.microsoft.icon font/ttf font/eot font/otf font/opentype