Problem with a virtualhost

mike mike503 at
Sun Sep 7 01:20:13 MSD 2008

On Sat, Sep 6, 2008 at 7:32 AM, David <mishy.cth at> wrote:

>        location ~ \.php$ {
>                fastcgi_pass;
>        }

just for cleanup/simplicity...

you can put these into fastcgi_params:

fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_index index.php;
fastcgi_intercept_errors  on;

and this can be included only once globally (or, you can just put the
contents directly into http {} just once and skip having a separate

include /usr/local/nginx/fastcgi_params;


More information about the nginx mailing list