Guest User

Untitled

a guest
Feb 20th, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 KB | None | 0 0
  1. <VirtualHost *:80>
  2. ServerName example.com
  3. ServerAdmin webmaster@localhost
  4. RewriteEngine On
  5.  
  6. DocumentRoot /home/websites/example.com/current/public
  7. <Directory "/home/websites/example.com/current/public">
  8. Options FollowSymLinks
  9. AllowOverride All
  10. Order allow,deny
  11. Allow from all
  12. </Directory>
  13.  
  14. # Check for maintenance file and redirect all requests
  15. RewriteCond %{DOCUMENT_ROOT}/system/maintenance.html -f
  16. RewriteCond %{SCRIPT_FILENAME} !maintenance.html
  17. RewriteRule ^.*$ /system/maintenance.html [L]
  18.  
  19. # Rewrite index to check for static
  20. RewriteRule ^/$ /cache/index.html [QSA]
  21.  
  22. # Rewrite to check for Rails cached page
  23. RewriteRule ^([^.]+)$ /cache/$1.html [QSA]
  24.  
  25.  
  26. ErrorLog /var/log/apache2/error.log
  27.  
  28. CustomLog /var/log/apache2/admin-access.log combined
  29. ServerSignature Off
  30.  
  31. </VirtualHost>
Add Comment
Please, Sign In to add comment