Skip to content

Instantly share code, notes, and snippets.

@thikade
Created December 5, 2015 10:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thikade/59e7644887aa71e7e48d to your computer and use it in GitHub Desktop.
Save thikade/59e7644887aa71e7e48d to your computer and use it in GitHub Desktop.
WAS headers with mod_proxy
# ===================================================================================
# 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