Last active
November 1, 2015 05:57
-
-
Save XanderStrike/cc178697081f6826463a to your computer and use it in GitHub Desktop.
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
# 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