i think it would be a bug. it's ok, if i set the document root as the top level folder,or like your problem too. location ~ \.php$ { root /web; # ok #root /web/htdocs; # your problem fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_sby cmpan - Nginx Mailing List - English