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

Version Path
le1t0-deprec-2.1.6.088 lib/deprec/templates/passenger/apache_vhost.erb
le1t0-deprec-2.1.6.087 lib/deprec/templates/passenger/apache_vhost.erb
le1t0-deprec-2.1.6.086 lib/deprec/templates/passenger/apache_vhost.erb
le1t0-deprec-2.1.6.085 lib/deprec/templates/passenger/apache_vhost.erb
le1t0-deprec-2.1.6.084 lib/deprec/templates/passenger/apache_vhost.erb
le1t0-deprec-2.1.6.083 lib/deprec/templates/passenger/apache_vhost.erb
le1t0-deprec-2.1.6.082 lib/deprec/templates/passenger/apache_vhost.erb
le1t0-deprec-2.1.6.081 lib/deprec/templates/passenger/apache_vhost.erb
le1t0-deprec-2.1.6.080 lib/deprec/templates/passenger/apache_vhost.erb
le1t0-deprec-2.1.6.079 lib/deprec/templates/passenger/apache_vhost.erb
le1t0-deprec-2.1.6.078 lib/deprec/templates/passenger/apache_vhost.erb
le1t0-deprec-2.1.6.077 lib/deprec/templates/passenger/apache_vhost.erb
le1t0-deprec-2.1.6.076 lib/deprec/templates/passenger/apache_vhost.erb
le1t0-deprec-2.1.6.075 lib/deprec/templates/passenger/apache_vhost.erb
le1t0-deprec-2.1.6.074 lib/deprec/templates/passenger/apache_vhost.erb
le1t0-deprec-2.1.6.073 lib/deprec/templates/passenger/apache_vhost.erb
le1t0-deprec-2.1.6.072 lib/deprec/templates/passenger/apache_vhost.erb
le1t0-deprec-2.1.6.071 lib/deprec/templates/passenger/apache_vhost.erb
le1t0-deprec-2.1.6.070 lib/deprec/templates/passenger/apache_vhost.erb
le1t0-deprec-2.1.6.069 lib/deprec/templates/passenger/apache_vhost.erb