# Nginx status server { listen 80; server_name localhost; location /nginx_status { stub_status on; access_log off; ...
Tag: nginx
if ($request_uri ~* "\.(ico|css|js|gif|jpe?g|png)\?+$") { access_log off; expires 31d; break; } # Matching URLs http://domain.com/stylesheets/blog.css?1221178271 if ($request_uri ~* "\.(ico|gif|png|jpe?g|css|js|swf)(\?v\d\d?)?$") { access_log off; expires 31d;...
# Add this line to your “vhost” fastcgi_param DEBUG “uri=$uri request_uri=$request_uri ...
# htpasswd file is relative to nginx conf location / { auth_basic “Restricted”; auth_basic_user_file conf/htpasswd; }
location ~ /.svn/* { deny all; }