Permalink
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
docker-shib-proxy/container_files/httpd/proxy.conf
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
22 lines (18 sloc)
825 Bytes
This file contains 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
# TODO: Configure caching? | |
# Pass required environment variables to Apache | |
PassEnv FRONT_HTTPS_PORT | |
# Configure behavior for all proxied requests | |
<Proxy "*"> | |
# Prevent these headers from being set by the client | |
RequestHeader unset Shib-Proxy-displayName | |
RequestHeader unset Shib-Proxy-eppn | |
RequestHeader unset Shib-Proxy-mail | |
# Provide headers to help the back-end application construct URLs correctly | |
RequestHeader set X-Forwarded-Proto "https" | |
RequestHeader set X-Forwarded-Port "%{FRONT_HTTPS_PORT}e" | |
# Set auth headers if corresponding environment variables have been set | |
# by the Shibboleth SP | |
RequestHeader set "Shib-Proxy-displayName" "%{displayName}e" env=displayName | |
RequestHeader set "Shib-Proxy-eppn" "%{eppn}e" env=eppn | |
RequestHeader set "Shib-Proxy-mail" "%{mail}e" env=mail | |
</Proxy> |