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.068 lib/deprec/templates/passenger/apache_vhost.erb
le1t0-deprec-2.1.6.067 lib/deprec/templates/passenger/apache_vhost.erb
le1t0-deprec-2.1.6.066 lib/deprec/templates/passenger/apache_vhost.erb
le1t0-deprec-2.1.6.065 lib/deprec/templates/passenger/apache_vhost.erb
le1t0-deprec-2.1.6.064 lib/deprec/templates/passenger/apache_vhost.erb
le1t0-deprec-2.1.6.063 lib/deprec/templates/passenger/apache_vhost.erb
le1t0-deprec-2.1.6.062 lib/deprec/templates/passenger/apache_vhost.erb
le1t0-deprec-2.1.6.061 lib/deprec/templates/passenger/apache_vhost.erb
le1t0-deprec-2.1.6.059 lib/deprec/templates/passenger/apache_vhost.erb
le1t0-deprec-2.1.6.058 lib/deprec/templates/passenger/apache_vhost.erb
le1t0-deprec-2.1.6.057 lib/deprec/templates/passenger/apache_vhost.erb
le1t0-deprec-2.1.6.056 lib/deprec/templates/passenger/apache_vhost.erb
le1t0-deprec-2.1.6.055 lib/deprec/templates/passenger/apache_vhost.erb
le1t0-deprec-2.1.6.054 lib/deprec/templates/passenger/apache_vhost.erb
le1t0-deprec-2.1.6.053 lib/deprec/templates/passenger/apache_vhost.erb
le1t0-deprec-2.1.6.052 lib/deprec/templates/passenger/apache_vhost.erb
le1t0-deprec-2.1.6.051 lib/deprec/templates/passenger/apache_vhost.erb
le1t0-deprec-2.1.6.050 lib/deprec/templates/passenger/apache_vhost.erb
le1t0-deprec-2.1.6.049 lib/deprec/templates/passenger/apache_vhost.erb
le1t0-deprec-2.1.6.048 lib/deprec/templates/passenger/apache_vhost.erb