Sha256: f03d2d6ffe3275de29d59cdd197a4151b5ea408752b0ee8e8e85203b47e38d95
Contents?: true
Size: 1.12 KB
Versions: 22
Compression:
Stored size: 1.12 KB
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)$ # allow requests to server-status and server-info, might be needed if you use monitoring services like fiveruns RewriteCond %{REQUEST_URI} !server-(status|info)/?$ 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
22 entries across 22 versions & 1 rubygems