Skip to content

Instantly share code, notes, and snippets.

@atnan
Created November 21, 2008 03:35
Show Gist options
  • Save atnan/27337 to your computer and use it in GitHub Desktop.
Save atnan/27337 to your computer and use it in GitHub Desktop.
<VirtualHost *:80>
ServerName www.example.com
DocumentRoot /path/to/rails/app/public
RailsEnv production
RewriteEngine On
RewriteCond %{DOCUMENT_ROOT}/system/maintenance.html -f
RewriteCond %{SCRIPT_FILENAME} !maintenance.html
RewriteRule ^.*$ /system/maintenance.html [L]
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment