Re: nginx+fascgi alias не работает

shuha nginx-forum на nginx.us
Чт Июл 1 14:28:24 MSD 2010


Посмотрел в логах... 
[client localhost] File does not exist: /home/public_html/n, referer:
http://localhost/n/

Может первый алиас перетирает
нижеследующий?

location / {
                        root /home/public_html;
                        index  index.html index.htm index.php;
                }
                location ~ \.php$ {
                        include fastcgi.conf;
                        fastcgi_pass 127.0.0.1:11000;
                        fastcgi_index index.php;
                        fastcgi_param SCRIPT_FILENAME
/home/public_html$fastcgi_script_name;
                }
                location /n {
                        root /var/www/html;
                        include fastcgi.conf;
                        fastcgi_pass 127.0.0.1:11000;
                        fastcgi_index index.php;
                        fastcgi_param SCRIPT_FILENAME
/var/www/html/test.php;
                }

Posted at Nginx Forum: http://forum.nginx.org/read.php?21,104149,104215#msg-104215




Подробная информация о списке рассылки nginx-ru