Skip to content

Instantly share code, notes, and snippets.

@SwagDevOps
Last active February 16, 2025 15:28
Show Gist options
  • Select an option

  • Save SwagDevOps/91c9a307937ba6ad33d06dc45df3f93d to your computer and use it in GitHub Desktop.

Select an option

Save SwagDevOps/91c9a307937ba6ad33d06dc45df3f93d to your computer and use it in GitHub Desktop.

Revisions

  1. SwagDevOps revised this gist Feb 16, 2025. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion behind_ssl_proxy.conf
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    # vim: set filetype=apache ts=4 sw=4 expandtab:
    # vim: set filetype=apache ts=2 sw=2 expandtab:
    <IfModule mod_remoteip.c>
    RemoteIPHeader X-Forwarded-For
    RemoteIPTrustedProxy 127.0.0.1
  2. SwagDevOps revised this gist Feb 16, 2025. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions behind_ssl_proxy.conf
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,4 @@
    # vim: set filetype=apache ts=4 sw=4 expandtab:
    <IfModule mod_remoteip.c>
    RemoteIPHeader X-Forwarded-For
    RemoteIPTrustedProxy 127.0.0.1
  3. SwagDevOps created this gist Feb 16, 2025.
    8 changes: 8 additions & 0 deletions behind_ssl_proxy.conf
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,8 @@
    <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>