Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <VirtualHost *:80>
- ServerName example.com
- ServerAdmin webmaster@localhost
- RewriteEngine On
- DocumentRoot /home/websites/example.com/current/public
- <Directory "/home/websites/example.com/current/public">
- Options FollowSymLinks
- AllowOverride All
- Order allow,deny
- Allow from all
- </Directory>
- # Check for maintenance file and redirect all requests
- RewriteCond %{DOCUMENT_ROOT}/system/maintenance.html -f
- RewriteCond %{SCRIPT_FILENAME} !maintenance.html
- RewriteRule ^.*$ /system/maintenance.html [L]
- # Rewrite index to check for static
- RewriteRule ^/$ /cache/index.html [QSA]
- # Rewrite to check for Rails cached page
- RewriteRule ^([^.]+)$ /cache/$1.html [QSA]
- ErrorLog /var/log/apache2/error.log
- CustomLog /var/log/apache2/admin-access.log combined
- ServerSignature Off
- </VirtualHost>
Add Comment
Please, Sign In to add comment