server { listen *:80; server_name dev.matrix.net; access_log /n/access.log main; root /www/matrix.net; index index.php; location / { try_files $uri $uri/ /index.php$is_args$args; } location ~ ^/wp-content/upload/(.*)\.php$ { return 444; } location ~ ^/wp-content/cache/(.*)\.php$ { return 444; } location ~ \.php$ { fastcgi_pass 127.0.0.1:36462; include fastcgi_params; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; } include static.conf; }