Help with rewrite
locojohn
nginx-forum at nginx.us
Mon Sep 5 18:13:03 UTC 2011
the first "if" can be replaced with the following:
location ^.+\.php$ {
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root/vbseo.php;
fastcgi_pass ....; # your fastcgi handler
}
not sure that the second "if" is needed, unless they meant to handle all
non-existing files (404 errors) with vbseo.php. this can be done with
the following:
location / {
error_page 404 = /vbseo.php;
}
Andrejs
Posted at Nginx Forum: http://forum.nginx.org/read.php?2,214761,214833#msg-214833
More information about the nginx
mailing list