server { listen 80; server_name URL-URL; root /usr/local/www; error_log /var/log/nginx/vbox-error.log warn; access_log /var/log/nginx/vbox.log; location / { root /usr/local/www/nginx; index index.php index.html; try_files $uri $uri/ =404; } location /phpvirtualbox { index index.html; try_files $uri $uri/ =404; } # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000 location ~ \.php$ { fastcgi_split_path_info ^(.+\.php)(/.+)$; fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; include fastcgi_params; } }