Last active
February 16, 2025 15:28
-
-
Save SwagDevOps/91c9a307937ba6ad33d06dc45df3f93d to your computer and use it in GitHub Desktop.
Tell apache we’re behind a reverse proxy handling SSL
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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