# Don't cause the server to break if Passenger module not loaded ServerName <%= domain %> 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] "> Order allow,deny Allow from all