generators/vulcanize/templates/passenger/config/rubber/role/passenger/passenger-apache-vhost.conf in rubber-1.7.2 vs generators/vulcanize/templates/passenger/config/rubber/role/passenger/passenger-apache-vhost.conf in rubber-1.8.0
- old
+ new
@@ -17,11 +17,10 @@
ErrorDocument 500 /500.html
SetEnvIf User-Agent "^(.*MSIE.*)|(.*AppleWebKit.*)$" nokeepalive
RailsEnv <%= RUBBER_ENV %>
- RailsAllowModRewrite on
RewriteEngine On
RewriteCond %{HTTP_HOST} ^<%= rubber_env.domain %>$
RewriteRule ^(.*)$ http://www.<%= rubber_env.domain %>$1 [R,L]
@@ -41,6 +40,9 @@
# SSLCertificateChainFile /etc/ssl/certs/gd_intermediate_bundle.crt
<% end %>
</VirtualHost>
-<% end %>
\ No newline at end of file
+<% end %>
+
+# The host here needs to match ServerName.
+PassengerPreStart http://<%= rubber_env.domain %>:<%= rubber_env.passenger_listen_port %>/