Skip to content

Instantly share code, notes, and snippets.

@tsmango
Last active December 21, 2015 20:59
Show Gist options
  • Save tsmango/6365452 to your computer and use it in GitHub Desktop.
Save tsmango/6365452 to your computer and use it in GitHub Desktop.
<VirtualHost *:8000>
ServerAlias *
DocumentRoot /var/www/
<Directory /var/www/>
Options FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>
RewriteEngine On
RewriteCond %{DOCUMENT_ROOT}/503.html -f
RewriteCond %{SCRIPT_FILENAME} !503.html
RewriteRule ^.*$ /503.html [L]
</VirtualHost>
backend my-web-app
server service-unavailable 127.0.0.1:8000 weight 1 backup
server i-eb1c5083 10.154.148.222:80 weight 1 check
server i-f41c531e 10.141.158.72:80 weight 1 check
listen my-web-http
bind :80
default_backend my-web-app
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment