server { listen 80; server_name mailgraph.nausch.org; access_log /var/log/nginx/mailgraph_access.log; error_log /var/log/nginx/mailgraph_errors.log; root /usr/share/mailgraph-ng/; index mailgraph.cgi; location ~ \.php { fastcgi_split_path_info ^(.+\.cgi)(/.+)$; fastcgi_index mailgraph.cgi; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; include fastcgi_params; } }