lib/ms_deploy/templates/vhost.erb in ms_deploy-0.1.3 vs lib/ms_deploy/templates/vhost.erb in ms_deploy-0.1.4

- old
+ new

@@ -50,13 +50,18 @@ # if ($http_referer !~ ^(http://mydomain.com) ) { # return 405; # } #} +<% if with_file_expire_max %> location ~* \.(ico|css|js|gif|jpe?g|png)(\?[0-9]+)?$ { expires max; break; } +<% end %> + + <%= optional_http_content if protocol == 'http' %> + <%= optional_https_content if protocol == 'https' %> # Prefer to serve static files directly from nginx to avoid unnecessary # data copies from the application server. # # try_files directive appeared in in nginx 0.7.27 and has stabilized