Sha256: f03d2d6ffe3275de29d59cdd197a4151b5ea408752b0ee8e8e85203b47e38d95

Contents?: true

Size: 1.12 KB

Versions: 22

Compression:

Stored size: 1.12 KB

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
	  
	  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)$
	  # 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

22 entries across 22 versions & 1 rubygems

Version Path
le1t0-deprec-2.1.6.022 lib/deprec/templates/passenger/apache_vhost.erb
le1t0-deprec-2.1.6.021 lib/deprec/templates/passenger/apache_vhost.erb
le1t0-deprec-2.1.6.020 lib/deprec/templates/passenger/apache_vhost.erb
le1t0-deprec-2.1.6.019 lib/deprec/templates/passenger/apache_vhost.erb
le1t0-deprec-2.1.6.018 lib/deprec/templates/passenger/apache_vhost.erb
le1t0-deprec-2.1.6.017 lib/deprec/templates/passenger/apache_vhost.erb
le1t0-deprec-2.1.6.016 lib/deprec/templates/passenger/apache_vhost.erb
le1t0-deprec-2.1.6.015 lib/deprec/templates/passenger/apache_vhost.erb
le1t0-deprec-2.1.6.014 lib/deprec/templates/passenger/apache_vhost.erb
le1t0-deprec-2.1.6.013 lib/deprec/templates/passenger/apache_vhost.erb
le1t0-deprec-2.1.6.012 lib/deprec/templates/passenger/apache_vhost.erb
le1t0-deprec-2.1.6.011 lib/deprec/templates/passenger/apache_vhost.erb
le1t0-deprec-2.1.6.010 lib/deprec/templates/passenger/apache_vhost.erb
le1t0-deprec-2.1.6.009 lib/deprec/templates/passenger/apache_vhost.erb
le1t0-deprec-2.1.6.008 lib/deprec/templates/passenger/apache_vhost.erb
le1t0-deprec-2.1.6.007 lib/deprec/templates/passenger/apache_vhost.erb
le1t0-deprec-2.1.6.006 lib/deprec/templates/passenger/apache_vhost.erb
le1t0-deprec-2.1.6.005 lib/deprec/templates/passenger/apache_vhost.erb
le1t0-deprec-2.1.6.004 lib/deprec/templates/passenger/apache_vhost.erb
le1t0-deprec-2.1.6.003 lib/deprec/templates/passenger/apache_vhost.erb