Sha256: db8546c927fa497e7c24363f94b9d739877fd11d8902a080c4a86a1617889718
Contents?: true
Size: 980 Bytes
Versions: 12
Compression:
Stored size: 980 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 %>" CustomLog <%= apache_log_dir %>/<%= application %>-access.log combined ErrorLog <%= apache_log_dir %>/<%= application %>-error.log 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
12 entries across 12 versions & 1 rubygems