Skip to content

Instantly share code, notes, and snippets.

@SwagDevOps
Last active February 16, 2025 15:28
Show Gist options
  • Save SwagDevOps/91c9a307937ba6ad33d06dc45df3f93d to your computer and use it in GitHub Desktop.
Save SwagDevOps/91c9a307937ba6ad33d06dc45df3f93d to your computer and use it in GitHub Desktop.
Tell apache we’re behind a reverse proxy handling SSL
# vim: set filetype=apache ts=2 sw=2 expandtab:
<IfModule mod_remoteip.c>
RemoteIPHeader X-Forwarded-For
RemoteIPTrustedProxy 127.0.0.1
</IfModule>
<IfModule mod_setenvif.c>
SetEnvIfNoCase X-Forwarded-Proto "^https$" HTTPS=on
</IfModule>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment