Sha256: f22811641b74a3dce06abb82d53205d20e5b27d44dfe14536a4a103107acd1ac

Contents?: true

Size: 1.15 KB

Versions: 3

Compression:

Stored size: 1.15 KB

Contents

# Don't cause the server to break if Passenger module not loaded
<IfModule passenger_module>
	<VirtualHost *:80>
	  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]
	  <Directory "<%= passenger_document_root %>">
	    Order allow,deny
	    Allow from all
	  </Directory>
	</VirtualHost>
</IfModule>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
le1t0-deprec-2.1.6.025 lib/deprec/templates/passenger/apache_vhost.erb
le1t0-deprec-2.1.6.024 lib/deprec/templates/passenger/apache_vhost.erb
le1t0-deprec-2.1.6.023 lib/deprec/templates/passenger/apache_vhost.erb