Skip to content

Instantly share code, notes, and snippets.

@techforum-repo
Created November 3, 2020 22:16
Show Gist options
  • Save techforum-repo/294b0d0eb06eb2873984aac7d96a488c to your computer and use it in GitHub Desktop.
Save techforum-repo/294b0d0eb06eb2873984aac7d96a488c to your computer and use it in GitHub Desktop.
<VirtualHost *:80>
ServerAdmin webmaster@dummy-host.example.com
DocumentRoot "c:/Apache24/docs/myexample.com"
ServerName myexample.com
ErrorLog "logs/myexample.com-error.log"
CustomLog "logs/myexample.com-access.log" common
ProxyHTMLEnable On
ProxyPassMatch "/test1/(.*)" "http://localhost:8080/$1"
ProxyPassReverse "/test1/" "http://localhost:8080/"
ProxyPassMatch "/test2/(.*)" "http://localhost:8081/$1"
ProxyPassReverse "/test2/" "http://localhost:8081"
ProxyPassMatch "/(.*)" "http://localhost:8082/$1"
ProxyPassReverse "/" "http://localhost:8082/"
<Location "/test1/">
ProxyHTMLURLMap / /test1/
</Location>
<Location "/test2/">
ProxyHTMLURLMap / /test2/
</Location>
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment