Skip to content

Instantly share code, notes, and snippets.

@XanderStrike
Last active November 1, 2015 05:57
Show Gist options
  • Save XanderStrike/cc178697081f6826463a to your computer and use it in GitHub Desktop.
Save XanderStrike/cc178697081f6826463a to your computer and use it in GitHub Desktop.
# sample proxypass for couchpotato, rails apps, etc
<VirtualHost *:80>
ServerName test.xanderstrike.com
ServerAdmin [email protected]
ProxyPreserveHost On
<Location />
Require all granted
ProxyPassReverse http://127.0.1:3000
</Location>
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule (.*) http://localhost:3000/$1 [P]
</VirtualHost>
# sample for deluge (put in virtualhost)
ProxyRequests Off
<Location /deluge>
RequestHeader append X-Deluge-Base "/deluge/"
</Location>
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
ProxyPass /deluge http://127.0.0.1:8112
ProxyPassReverse /deluge http://127.0.0.1:8112
ProxyPassReverseCookieDomain 127.0.0.1 localhost
ProxyPassReverseCookiePath / /deluge/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment