# Don't cause the server to break if Passenger module not loaded ServerName <%= domain %> <%- passenger_server_aliases.each do |server_alias| -%> ServerAlias <%= server_alias %> <%- end %> DocumentRoot "<%= passenger_document_root %>" CustomLog <%= apache_log_dir %>/<%= application %>-access.log combined ErrorLog <%= apache_log_dir %>/<%= application %>-error.log RailsEnv <%= rails_env %> RackEnv <%= 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] "> Order allow,deny Allow from all