This is the config I used when I had your mod working AND vBSEO attachment rewrites going. Now from the site, everything worked. In fact, load even when down. Yet I'm not sure if it's correctly working or not.
Notice I did not add your config options as this seemed to work.
Code:
server {
listen 80 default;
server_name www.xxxx.com xxxx.com;
server_name_in_redirect on;
location / {
root /www/vhosts/xxxx.com/htdocs;
index index.php;
autoindex on;
access_log off;
}
location ~ \.php$ {
root /www/vhosts/xxxx.com/htdocs;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PATH_TRANSLATED $document_root$fastcgi_script_name;
include fastcgi_params;
fastcgi_intercept_errors on;
}
location /forum/ {
if (!-e $request_filename) {
rewrite ^/forum/(.*)$ /forum/vbseo.php last;
}
}
if ($request_filename ~ "\.php$" ) {
rewrite ^(.*)$ /forum/vbseo.php last;
}
location ~* \.(swf|pdf|ico|css|js|gif|jp?g|attach|thumb|png)(\?[0-9]+)?$ {
expires max;
root /www/vhosts/xxx.com/htdocs;
}
location /status {
stub_status on;
access_log off;
}
}