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.047 lib/deprec/templates/passenger/apache_vhost.erb
le1t0-deprec-2.1.6.046 lib/deprec/templates/passenger/apache_vhost.erb
le1t0-deprec-2.1.6.045 lib/deprec/templates/passenger/apache_vhost.erb
le1t0-deprec-2.1.6.044 lib/deprec/templates/passenger/apache_vhost.erb
le1t0-deprec-2.1.6.043 lib/deprec/templates/passenger/apache_vhost.erb
le1t0-deprec-2.1.6.042 lib/deprec/templates/passenger/apache_vhost.erb
le1t0-deprec-2.1.6.041 lib/deprec/templates/passenger/apache_vhost.erb
le1t0-deprec-2.1.6.040 lib/deprec/templates/passenger/apache_vhost.erb
le1t0-deprec-2.1.6.039 lib/deprec/templates/passenger/apache_vhost.erb
le1t0-deprec-2.1.6.038 lib/deprec/templates/passenger/apache_vhost.erb
le1t0-deprec-2.1.6.037 lib/deprec/templates/passenger/apache_vhost.erb
le1t0-deprec-2.1.6.036 lib/deprec/templates/passenger/apache_vhost.erb
le1t0-deprec-2.1.6.035 lib/deprec/templates/passenger/apache_vhost.erb
le1t0-deprec-2.1.6.034 lib/deprec/templates/passenger/apache_vhost.erb
le1t0-deprec-2.1.6.033 lib/deprec/templates/passenger/apache_vhost.erb
le1t0-deprec-2.1.6.032 lib/deprec/templates/passenger/apache_vhost.erb
le1t0-deprec-2.1.6.031 lib/deprec/templates/passenger/apache_vhost.erb
le1t0-deprec-2.1.6.030 lib/deprec/templates/passenger/apache_vhost.erb
le1t0-deprec-2.1.6.029 lib/deprec/templates/passenger/apache_vhost.erb
le1t0-deprec-2.1.6.028 lib/deprec/templates/passenger/apache_vhost.erb