Sha256: bdb99618b49ee88269dc7684624291f7f446b1028d16a524d798a0c256445cf9
Contents?: true
Size: 1.73 KB
Versions: 3
Compression:
Stored size: 1.73 KB
Contents
ServerSignature Off <Directory /> Options FollowSymLinks AllowOverride None </Directory> DocumentRoot /mnt/app/current/public <Directory "/mnt/app/current/public"> Options FollowSymLinks AllowOverride None Order allow,deny Allow from all </Directory> # Disallow browsing of Subversion working copy administrative dirs. <DirectoryMatch "^/.*/\.svn/"> Order allow,deny Deny from all </DirectoryMatch> RewriteEngine On # Uncomment for rewrite debugging #RewriteLog /mnt/log/apache2/app_rewrite_log #RewriteLogLevel 9 # Check for maintenance file and redirect all requests RewriteCond %{REQUEST_URI} !\.(png|jpg|jpeg|gif|css)$ RewriteCond %{DOCUMENT_ROOT}/system/maintenance.html -f RewriteCond %{SCRIPT_FILENAME} !maintenance.html RewriteRule ^.*$ /system/maintenance.html [L] # Rewrite index to check for static RewriteRule ^/$ /index.html [QSA] # Rewrite to check for Rails cached page RewriteRule ^([^.]+)$ $1.html [QSA] # Redirect all non-static requests to cluster RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} !-f RewriteRule ^/(.*)$ balancer://mongrel_cluster%{REQUEST_URI} [P,QSA,L] # Deflate AddOutputFilterByType DEFLATE text/html text/plain text/xml application/xml application/xhtml+xml text/javascript application/x-javascript text/css BrowserMatch ^Mozilla/4 gzip-only-text/html BrowserMatch ^Mozilla/4.0[678] no-gzip BrowserMatch \bMSIE !no-gzip !gzip-only-text/html # Make sure proxies don't deliver the wrong content Header append Vary User-Agent env=!dont-vary # Uncomment for deflate debugging #DeflateFilterNote Input input_info #DeflateFilterNote Output output_info #DeflateFilterNote Ratio ratio_info #LogFormat '"%r" %{output_info}n/%{input_info}n (%{ratio_info}n%%)' deflate #CustomLog logs/myapp_deflate_log deflate
Version data entries
3 entries across 3 versions & 2 rubygems