Что значит эта ошибка ?
maxhl at hitline.net.ua
maxhl at hitline.net.ua
Tue Apr 21 18:29:46 MSD 2009
В error логе полно таких ошибок:
2009/04/21 18:22:45 [error] 29090#0: *166570 open()
"/home/content/index.html" failed (2: No such file or directory), client:
...
У меня везде прописан index.php а он все равно ищет index.html ...
Конфиг вирт хоста:
server {
listen 80;
listen 81;
listen 82;
server_name мой.домен *.мой домен;
access_log /home/logs/content_access.log combined;
error_log /home/logs/content_error.log info;
server_name_in_redirect off;
root /home/content;
index index.php index.html index.htm;
# redirect to php<----->
location ~ .php$ {
set $path_info $fastcgi_script_name;
set $real_script_name $fastcgi_script_name;
if ($fastcgi_script_name ~ "(.+?.php)(/.+)$") {
set $real_script_name $1;
set $path_info $2;
}
fastcgi_param SCRIPT_FILENAME /home/content$real_script_name;
fastcgi_param SCRIPT_NAME $real_script_name;
fastcgi_param PATH_INFO $path_info;
fastcgi_pass unix:/mnt/md0/php-fcgi.sock;
include /usr/local/nginx/conf/phpcgi.conf;
}
include /usr/local/nginx/conf/404;
include /usr/local/nginx/conf/anti_lich;
include /usr/local/nginx/conf/.ht;
}
#phpcgi.conf
fastcgi_pass_request_body off;
client_body_in_file_only clean;
fastcgi_param REQUEST_BODY_FILE $request_body_file;
fastcgi_param<->CONTENT_TYPE<--><------>$content_type;
fastcgi_param<->CONTENT_LENGTH<><------>$content_length;
fastcgi_param DOCUMENT_ROOT<-><------>$document_root;
fastcgi_param<->DOCUMENT_URI<--><------>$document_uri;
fastcgi_param<->GATEWAY_INTERFACE<----->CGI/1.1;
#fastcgi_param PATH_INFO <---><------>"http://$http_host$request_uri";
#fastcgi_param PATH_TRANSLATED "/home/content$document_uri";
fastcgi_param<->QUERY_STRING<--><------>$query_string;
fastcgi_param<->REMOTE_ADDR<---><------>$remote_addr;
fastcgi_param<->REMOTE_PORT<---><------>$remote_port;
fastcgi_param<->REQUEST_URI<---><------>$request_uri;
fastcgi_param<->REQUEST_METHOD<><------>$request_method;
fastcgi_param<->SCRIPT_NAME<---><------>$request_uri;
fastcgi_param<->SERVER_ADDR<---><------>$server_addr;
#fastcgi_param<>SERVER_NAME<---><------>$server_name;
fastcgi_param<->SERVER_PORT<---><------>$server_port;
fastcgi_param<->SERVER_PROTOCOL><------>$server_protocol;
fastcgi_param<->SERVER_SOFTWARE <------>nginx/$nginx_version;
fastcgi_param REDIRECT_STATUS 200;
fastcgi_index index.php;
Заранее спасибо.
____________________________
С уважением Max ICQ 71006063
More information about the nginx-ru
mailing list