Skip to content

Instantly share code, notes, and snippets.

@benhoskings
Created November 4, 2008 05:27
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 benhoskings/22085 to your computer and use it in GitHub Desktop.
Save benhoskings/22085 to your computer and use it in GitHub Desktop.
<VirtualHost *:80>
ServerName mohole.net
ServerAlias www.mohole.net
DocumentRoot /home/mohole/current/public
<Directory "/home/mohole/current/public/">
Options FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>
<Proxy balancer://mohole-camping>
BalancerMember http://127.0.0.1:3301
</Proxy>
ProxyPass /images !
ProxyPass /javascripts !
ProxyPass /stylesheets !
ProxyPass / balancer://mohole-camping/
ProxyPassReverse / balancer://mohole-camping/
ProxyPreserveHost On
RewriteEngine On
# Redirect all requests to the maintenance page if it exists
RewriteCond %{DOCUMENT_ROOT}/system/maintenance.html -f
RewriteCond %{SCRIPT_FILENAME} !maintenance.html
RewriteRule ^.*$ %{DOCUMENT_ROOT}/system/maintenance.html [L]
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment