Sha256: 4658eb189dfa6c3067becabc48e28637a77a0ca26259501ffc7ba59122c2727b
Contents?: true
Size: 1.93 KB
Versions: 4
Compression:
Stored size: 1.93 KB
Contents
<IfModule passenger_module> <VirtualHost *:80> ServerName <%= domain %> <%- Array(passenger_server_alii).each do |server_alias| -%> ServerAlias <%= server_alias %> <%- end -%> <%- if passenger_redirect_to_canonical_hostname -%> # Redirect to canonical hostname RewriteEngine On RewriteCond %{HTTP_HOST} !^<%= domain.gsub('.','\.') %> [NC] RewriteCond %{HTTP_HOST} !^$ RewriteRule ^/?(.*) http://<%= domain %>/$1 [L,R=301,NE] <%- end -%> DocumentRoot <%= passenger_document_root %> <Directory <%= passenger_document_root %>> Allow from all Options -MultiViews </Directory> CustomLog <%= apache_log_dir %>/<%= application %>-access.log combined ErrorLog <%= apache_log_dir %>/<%= application %>-error.log RackEnv <%= rack_env %> RailsEnv <%= rack_env %> # Enable caching of assets containing a fingerprint # Browsers need never check for newer versions of an # asset because the fingerprint would be different. <Directory <%= passenger_document_root %>/public/assets> <FilesMatch "[^.]+-[a-z0-9]{32}\."> # Add far-future expiration dates <IfModule mod_expires.c> ExpiresActive On ExpiresDefault "access plus 10 years" </IfModule> # Disable ETags <IfModule mod_headers.c> Header unset "ETag" </IfModule> </FilesMatch> </Directory> # Check for maintenance file and redirect all requests RewriteEngine On RewriteCond %{REQUEST_URI} !\.(css|jpg|png|gif)$ RewriteCond %{DOCUMENT_ROOT}/system/maintenance.html -f RewriteCond %{SCRIPT_FILENAME} !maintenance.html RewriteRule ^.*$ /system/maintenance.html [L] </VirtualHost> </IfModule>
Version data entries
4 entries across 4 versions & 1 rubygems