Sha256: 2dc87c1b8b490d446efacc62af77a8ecadc20db1a628b145b62a4d1416c38148
Contents?: true
Size: 1.72 KB
Versions: 62
Compression:
Stored size: 1.72 KB
Contents
# Don't cause the server to break if Passenger module not loaded <IfModule passenger_module> <VirtualHost *:80> ServerName <%= domain %> <% unless passenger_server_aliases.nil? %> <%- passenger_server_aliases.each do |server_alias| -%> ServerAlias <%= server_alias %> <%- end %> <% else %> <%- 4.times do |counter| -%> ServerAlias <%= domain.sub(/.*?\./, "assets#{counter}.") %> <%- end %> <% end %> DocumentRoot "<%= passenger_document_root %>" <% unless passenger_app_root == false %> PassengerAppRoot "<%= passenger_app_root || File.dirname(passenger_document_root) %>" <% end %> <% if passenger_apache_logging_config %> <%= passenger_apache_logging_config %> <% else %> CustomLog <%= apache_log_dir %>/<%= application %>-access.log combined ErrorLog <%= apache_log_dir %>/<%= application %>-error.log <% end %> <% if passenger_rails_3 %> RackEnv <%= rails_env %> <% else %> RailsEnv <%= rails_env %> <% end %> <% if passenger_apache_rewrite_config %> <%= passenger_apache_rewrite_config %> <% else %> RewriteEngine On RewriteCond %{REQUEST_URI} !\.(css|jpg|png|gif)$ RewriteCond %{REQUEST_URI} !server-(status|info)/?$ RewriteCond %{DOCUMENT_ROOT}/system/maintenance.html -f RewriteCond %{SCRIPT_FILENAME} !maintenance.html RewriteRule ^.*$ /system/maintenance.html [L] <% end %> <% if passenger_apache_extra_config %> <%= passenger_apache_extra_config %> <% end %> <Directory "<%= passenger_document_root %>"> Order allow,deny Allow from all <% if passenger_apache_deflate_html %> AddOutputFilterByType DEFLATE text/html <% end %> </Directory> </VirtualHost> </IfModule>
Version data entries
62 entries across 62 versions & 1 rubygems