Skip to content

Instantly share code, notes, and snippets.

@Ashton-W
Created April 26, 2013 13:57
Show Gist options
  • Save Ashton-W/5467556 to your computer and use it in GitHub Desktop.
Save Ashton-W/5467556 to your computer and use it in GitHub Desktop.
Figuring out how to make Apache Reverse Proxy do what I need it to do took longer than a couple minutes, leaving this here for posterity. Reverse Proxy for servers running on other ports. Shows use of subdirectory in ProxyPassReverse declaration.
<Location /sabnzb>
order deny,allow
deny from all
allow from all
ProxyPass http://localhost:8080/sabnzbd
ProxyPassReverse http://localhost:8080/sabnzbd
</Location>
<Location /couchpotato>
order deny,allow
deny from all
allow from all
ProxyPass http://localhost:8082/couchpotato
ProxyPassReverse http://localhost:8082/couchpotato
</Location>
<Location /sickbeard>
order deny,allow
deny from all
allow from all
ProxyPass http://localhost:8081/sickbeard
ProxyPassReverse http://localhost:8081/sickbeard
</Location>
<Location /plex>
order deny,allow
deny from all
allow from all
ProxyPass http://localhost:32400/web
ProxyPassReverse http://localhost:32400/web
</Location>
<Location /torrent>
order deny,allow
deny from all
allow from all
ProxyPass http://localhost:8083
ProxyPassReverse http://localhost:8083
</Location>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment