Created
December 5, 2015 10:21
-
-
Save thikade/59e7644887aa71e7e48d to your computer and use it in GitHub Desktop.
WAS headers with mod_proxy
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
# =================================================================================== | |
# SET WAS specific headers | |
# =================================================================================== | |
ProxyPreserveHost On | |
# for handling DNS aliases use env variables derived from 'Host' HTTP header | |
SetEnvIf Host ^host1 HOST1 | |
SetEnvIf Host ^host2 HOST2 | |
RequestHeader set $WSSN host1 env=HOST1 | |
RequestHeader set $WSSN host2 env=HOST2 | |
RequestHeader set $WSSP 80 | |
# more headers could be necessary ... | |
# | |
# RequestHeader set $WSSC http | |
# RequestHeader set $WSSC https | |
# | |
# RequestHeader set $WSPR HTTP/1.1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment