Nginx-ru mailing list archive (nginx-ru@sysoev.ru)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
После перехода на nginx + php + fcgi (spawn-fcgi) пере стал писаться error.log
- To: nginx-ru@xxxxxxxxx
- Subject: После перехода на nginx + php + fcgi (spawn-fcgi) пере стал писаться error.log
- From: Влад <vk@xxxxxxxxxx>
- Date: Fri, 26 Oct 2007 12:12:29 +0400
Здравствуйте, .
Подскажите, куда копать?
>>>> sitename.conf
server {
listen 80;
server_name sitename.ru www.sitename.ru;
set $srv_root /www/sitename.ru/htdocs;
access_log /www/sitename.ru/logs/access.log main;
error_log /www/sitename.ru/logs/error.log;
location / {
root $srv_root;
location ~ .php$ {
fastcgi_pass 127.0.0.1:8888;
fastcgi_index index.php;
fastcgi_connect_timeout 15;
fastcgi_send_timeout 600;
fastcgi_read_timeout 600;
fastcgi_buffer_size 32k;
fastcgi_buffers 4 32k;
fastcgi_busy_buffers_size 32k;
fastcgi_temp_file_write_size 32k;
fastcgi_temp_path /var/nginx/fcgi_temp;
fastcgi_intercept_errors on; # для отображения своих страниц об ошибках
fastcgi_param DOCUMENT_ROOT $srv_root/;
fastcgi_param SCRIPT_FILENAME $srv_root$fastcgi_script_name;
fastcgi_param PATH_TRANSLATED $srv_root$fastcgi_script_name;
fastcgi_param SCRIPT_NAME $fastcgi_script_name;
fastcgi_param QUERY_STRING $query_string;
fastcgi_param REDIRECT_STATUS 200;
fastcgi_param CONTENT_TYPE $content_type;
fastcgi_param CONTENT_LENGTH $content_length;
fastcgi_param SERVER_ADDR $server_addr;
fastcgi_param SERVER_PORT $server_port;
fastcgi_param SERVER_PROTOCOL $server_protocol;
fastcgi_param SERVER_SOFTWARE "nginx";
fastcgi_param GATEWAY_INTERFACE "CGI/1.1";
fastcgi_param SERVER_NAME $server_name;
fastcgi_param REQUEST_URI $request_uri;
fastcgi_param REQUEST_METHOD $request_method;
fastcgi_param REMOTE_USER $remote_user;
fastcgi_param REMOTE_ADDR $remote_addr;
fastcgi_param REMOTE_PORT $remote_port;
}
}
}
>>>> php.ini
display_errors = On
display_startup_errors = Off
log_errors = On
log_errors_max_len = 1024
ignore_repeated_errors = On
ignore_repeated_source = On
report_memleaks = On
--
С уважением,
Влад mailto:vk@xxxxxxxxxx
|