lib/ms_deploy/templates/vhost.erb in ms_deploy-0.0.10 vs lib/ms_deploy/templates/vhost.erb in ms_deploy-0.0.11

- old
+ new

@@ -26,9 +26,21 @@ #keepalive_timeout 5; # path for static files root <%= project_root %>/public; + ### Stop Image and Document Hijacking + #location ~* (\.jpg|\.png|\.css)$ { + # if ($http_referer !~ ^(http://mydomain.com) ) { + # return 405; + # } + #} + + location ~* \.(ico|css|js|gif|jpe?g|png)(\?[0-9]+)?$ { + expires max; + break; + } + # 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 # over time. Older versions of nginx (e.g. 0.6.x) requires