Nginx server status vhost
# Nginx status server { listen 80; server_name localhost; location /nginx_status { stub_status on; access_log off; … Read More »Nginx server status vhost
# Nginx status server { listen 80; server_name localhost; location /nginx_status { stub_status on; access_log off; … Read More »Nginx server status vhost
if ($request_uri ~* “\.(ico|css|js|gif|jpe?g|png)\?[0-9]+$”) { 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; break;… Read More »Cache static media files with nginx
# Add this line to your “vhost” fastcgi_param DEBUG “uri=$uri request_uri=$request_uri … Read More »Nginx: debug fastcgi params
# htpasswd file is relative to nginx conf location / { auth_basic “Restricted”; auth_basic_user_file conf/htpasswd; }
location ~ /.svn/* { deny all; }
server { server_name mysite.tld ~^.+.mysite.tld$; map $host $files { default common; mysite.tld common; www.mysite.tld common; admin.mysite.tld admin; system.mysite.tld system; *.mysite.tld users; } root /var/www/mysite/$files; }