[newbie] Two configuration issues with PHP5-FPM

Gilles Ganault gilles.ganault at free.fr
Fri Jul 16 04:19:48 MSD 2010


On Fri, 16 Jul 2010 02:13:02 +0200, Gilles Ganault
<gilles.ganault at free.fr> wrote:
>Thanks Brian, but it makes no difference.

I think I found it: The "root" must be set to this instead of
"/var/www":

============
server {
    [...]
    root   /var/www/nginx-default;

    [...]
        fastcgi_param  SCRIPT_FILENAME
$document_root$fastcgi_script_name;
============

Now, I can use either "http://192.168.0.8/" or
"http://192.168.0.8/index.php".

BTW, this is for a single-site server, so I have no use for VPS.

Hopefully, the way it's configured won't have unintended consequences
further down the road.

Thanks for the help.




More information about the nginx mailing list