Actually I'm getting a 404:
Not Found
The requested URL /index.php was not found on this server.
For reference, Vesta CP is an open source hosting control panel which uses both nginx and apache as its webservers. Static content is handled by nginx, any else is passed on to apache as a proxy.
Here's an example of my nginx configuration, as comes out of the box from creating a new site in Vesta CP:
server {
listen
31.123.123.123:80;
server_name
diary.example.co.uk ;
error_log /var/log/apache2/domains/diary.example.co.uk.error.log error;
location / {
proxy_pass
http://31.123.123.123:8080;
location ~* ^.+\.(jpeg|jpg|png|gif|bmp|ico|svg|tif|tiff|css|js|htm|html|ttf|otf|webp|woff|txt|csv|rtf|doc|docx|xls|xlsx|ppt|pptx|odf|odp|ods|odt|pdf|psd|ai|eot|eps|ps|zip|tar|tgz|gz|rar|bz2|7z|aac|m4a|mp3|mp4|ogg|wav|wma|3gp|avi|flv|m4v|mkv|mov|mp4|mpeg|mpg|wmv|exe|iso|dmg|swf)$ {
root /home/matt/web/
diary.example.co.uk/public_html;
access_log /var/log/apache2/domains/diary.example.co.uk.log combined;
access_log /var/log/apache2/domains/diary.example.co.uk.bytes bytes;
expires max;
try_files $uri @fallback;
}
}
location /error/ {
alias /home/matt/web/
diary.example.co.uk/document_errors/;
}
location @fallback {
proxy_pass
http://31.123.123.123:8080;
}
location ~ /\.ht {return 404;}
location ~ /\.svn/ {return 404;}
location ~ /\.git/ {return 404;}
location ~ /\.hg/ {return 404;}
location ~ /\.bzr/ {return 404;}
include /home/matt/conf/web/nginx.diary.example.co.uk.conf*;
}