]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/web/templates/default/apache.backend.erb
Use the right PreStart URL for the https virtual server
[chef.git] / cookbooks / web / templates / default / apache.backend.erb
index 6128b322c05e429012214dce87edc2d1cdb0466b..d6dc4cd396460d05390eab93d0e36d8568cbaf43 100644 (file)
@@ -19,7 +19,7 @@
   #
   # Setup logging
   #
-  LogFormat "%h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\" %Ts" combined_with_time
+  LogFormat "%a %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\" %Ts" combined_with_time
   CustomLog /var/log/apache2/access.log combined_with_time
   ErrorLog /var/log/apache2/error.log
 
   RailsEnv production
   PassengerMinInstances 3
   PassengerMaxRequests 500
+<% if port == 443 -%>
+  PassengerPreStart https://www.openstreetmap.org/
+<% else -%>
   PassengerPreStart http://www.openstreetmap.org/
+<% end -%>
   SetEnv SECRET_KEY_BASE <%= @secret_key_base %>
 
   #