Created
November 4, 2008 05:27
-
-
Save benhoskings/22085 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
<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