Sha256: cea3b43f2b330e19d0d23ae61f3577c972bbe8e458f65f8a8db16d333d3c7635

Contents?: true

Size: 1006 Bytes

Versions: 1

Compression:

Stored size: 1006 Bytes

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
	  
	  RackEnv <%= rack_env %>
	  RailsEnv <%= rack_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]
	  <Directory "<%= passenger_document_root %>">
	    Order allow,deny
	    Allow from all
	  </Directory>
	</VirtualHost>
</IfModule>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
deprec-2.2.0 lib/deprec/templates/passenger/apache_vhost.erb