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

Denis F. Latypoff latypoff на yandex.ru
Чт Июл 1 16:34:55 MSD 2010


01.07.10, 16:28, "shuha" <nginx-forum at nginx.us>:

> Александр,
>  
>  в конфиге всего 4 алиаса:
>  
>   server {
>                  listen 80;
>                  server_name localhost;
>                  access_log /var/log/httpd/localhost.bytes bytes;
>                  access_log /var/log/httpd/localhost.log combined;
>                  error_log /var/log/httpd/localhost.error.log warn;
>                  location /nginx_status {
>                          stub_status on;
>                          access_log off;
>                          stub_status on;
>                          access_log off;

Я, для пущей уверенности, добавил бы еще три раза:

+                          stub_status on;
+                          access_log off;
+                          stub_status on;
+                          access_log off;
+                          stub_status on;
+                          access_log off;

>                          allow all;
>                  }
>                  location / {
>                          root /home/public_html;
>                          index  index.html index.htm index.php;
>                  }
>                  location ~ \.php$ {
+                          root /home/public_html;
>                          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 {
>                          include fastcgi_params;
>                          fastcgi_pass 127.0.0.1:11000;
>                          fastcgi_param SCRIPT_FILENAME
>  /var/www/html/test.php;
>                  }
>  
>          }
>  
>  Все три алиаса кроме location /n  работают...
>  Помогите пожалуйста разобраться

Смотрите в логи php.

-- 
br, Denis F. Latypoff.



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