Sha256: 7ad3d65b4370b3b32e1a6b246c5dbd64ce424380f543dfe64b8eebec218b3f50
Contents?: true
Size: 839 Bytes
Versions: 11
Compression:
Stored size: 839 Bytes
Contents
# Don't cause the server to break if Passenger module not loaded <IfModule passenger_module> <VirtualHost *:80> ServerName <%= domain %> <%- 4.times do |counter| -%> ServerAlias <%= domain.sub(/.*?\./, "assets#{counter}.") %> <%- end %> DocumentRoot "<%= passenger_document_root %>" RailsEnv <%= rails_env %> # RailsAllowModRewrite <%= passenger_rails_allow_mod_rewrite %> # # 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] <Directory "<%= passenger_document_root %>"> Order allow,deny Allow from all </Directory> </VirtualHost> </IfModule>
Version data entries
11 entries across 11 versions & 1 rubygems