Nginx-ru mailing list archive (nginx-ru@sysoev.ru)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Подскажите по конфигу FCGI, плиз.
- To: nginx-ru@xxxxxxxxx
- Subject: Подскажите по конфигу FCGI, плиз.
- From: "photographer" <nginx-forum@xxxxxxxx>
- Date: Thu, 03 Feb 2011 11:18:19 -0500
- Dkim-signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mickey.jlkhosting.com; s=x; h=Date:Sender:From:Message-ID:Content-Transfer-Encoding:Content-Type:Subject:To; bh=QnRqeydO5xTe18AEVZqYVdpiaTSXxps5NjJA1lxccBA=; b=sUTCW+iHzm91CfeP3jo8iZR00YfjepWfvwROXX6S8zIRSVehNHlAehtqdDH/9+bmjB/xbC1vG8jbIzNCng8htrYgBuhRz3WJ3IocAYnih656Kt3vWG1MJ5MWNnHu0uZk;
Получаю вот такую ошибку.
FastCGI sent in stderr: "Cannot get script name, is DOCUMENT_ROOT and
SCRIPT_NAME
Доступ к странице 403
Тут подробнее кусок из лога
http://test.stylepix.net/index.htm
А тут видно ошибку http://test.stylepix.net/index.php
У меня голова больше не соображает :)
[code]
server {
listen 80; ## listen for ipv4
server_name test.stylepix.net;
access_log /var/www/_test/ng_access.log;
error_log /var/www/_test/ng_error.log;
location / {
root /var/www/_test;
index index.php index.html index.htm;
autoindex on;
}
location ~ \.php$ {
fastcgi_pass unix:/var/run/fcgiwrap.socket;
gzip off;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name;
fastcgi_param DOCUMENT_ROOT $document_root;
include /etc/nginx/fastcgi_params;
}
}
[/code]
Спасибо!
Posted at Nginx Forum:
http://forum.nginx.org/read.php?21,171921,171921#msg-171921
_______________________________________________
nginx-ru mailing list
nginx-ru@xxxxxxxxx
http://nginx.org/mailman/listinfo/nginx-ru
|