server { listen 80; server_name betterawstats.nausch.org; access_log /var/log/nginx/betterawstats_access.log; error_log /var/log/nginx/betterawstats_errors.log; root /usr/share/betterawstats/; index index.php index.html; location ~ \.php { fastcgi_split_path_info ^(.+\.php)(/.+)$; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; include fastcgi_params; } location ~* ^/(.+\.(gif|jp?eg|png|css|js|cgi|pl|ico|swf|flv|s?html|php|xap|py|xml|txt))$ { expires 1y; root /usr/share/betterawstats; allow all; } location ~ icons { allow all; } }