ðòïåëôù 


  áòèé÷ 


Apache-Talk @lexa.ru 

Inet-Admins @info.east.ru 

Filmscanners @halftone.co.uk 

Security-alerts @yandex-team.ru 

nginx-ru @sysoev.ru 


  óôáôøé 


  ðåòóïîáìøîïå 


  ðòïçòáííù 



ðéûéôå
ðéóøíá












     áòèé÷ :: nginx-ru
Nginx-ru mailing list archive (nginx-ru@sysoev.ru)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ðÒÏÂÌÅÍÁ Ó root



ëÏÎÆÉÇ:

server
{
š š š šlisten 80;
š š š šserver_name mydomain.com;
š š š šaccess_log /var/log/nginx/mydomain.com.access.log;

š š š šlocation / {
š š š š š š š šroot /var/www/mydomain.com;
š š š š š š š šindex index.php;
š š š š š š š štry_files $uri /index.php?$query_string;
š š š š}

š š š šlocation ~* ^.+.(jpg|jpeg|gif|css|png|js|ico|xml|htm|html|txt)$ {
š š š š š š š šaccess_log off;
š š š š š š š šexpires 30d;
š š š š š š š šroot /var/www/mydomain.com;
š š š š}

š š š šlocation = /test/munin {
š š š š š š š š#root /var/cache/munin/www;
š š š š š š š šalias /var/cache/munin/www;
š š š š š š š šindex index.html;
š š š š}

š š š šlocation ~ .php$ {
š š š š š š š šroot /var/www/mydomain.com;
š š š š š š š šfastcgi_split_path_info ^(.+\.php)(.*)$;
š š š š š š š šfastcgi_pass backend;
š š š š š š š šfastcgi_index index.php;
š š š š š š š šfastcgi_param DOCUMENT_ROOT /var/www/mydomain.com;
š š š š š š š šfastcgi_param SCRIPT_FILENAME
/var/www/mydomain.com$fastcgi_script_name;
š š š š š š š šinclude fastcgi_params;

š š š š š š š šfastcgi_param QUERY_STRING $query_string;
š š š š š š š šfastcgi_param REQUEST_METHOD $request_method;
š š š š š š š šfastcgi_param CONTENT_TYPE $content_type;
š š š š š š š šfastcgi_param CONTENT_LENGTH $content_length;

š š š š š š š šfastcgi_intercept_errors on;
š š š š š š š šfastcgi_ignore_client_abort off;
š š š š š š š šfastcgi_connect_timeout 60;
š š š š š š š šfastcgi_send_timeout 30;
š š š š š š š šfastcgi_read_timeout 30;
š š š š š š š šfastcgi_buffer_size 128k;
š š š š š š š šfastcgi_buffers 4 245k;
š š š š š š š šfastcgi_busy_buffers_size 256k;
š š š š š š š šfastcgi_temp_file_write_size 256k;
š š š š}

š š š šlocation ~ /\.ht {
š š š š š š š šdeny all;
š š š š}
}

upstream backend
{
š š š šserver 127.0.0.1:9000;
}



ìÏÇÉ:

2011/05/26 01:07:29 [error] 872#0: *10 open()
"/var/cache/munin/www/test/munin" failed (2: No such file or directory),
client: xx.xx.xx.xx, server: mydomain.com, request: "GET /test/munin
HTTP/1.1", host: "mydomain.com"

áÂÓÏÌÀÔÎÏ ÁÄÅË×ÁÔÎÏÅ ÐÏ×ÅÄÅÎÉÅ nginx'Á. ÷ ËÁËÏÊ ËÁÔÁÌÏÇ ×ÁÍ ÎÅÏÂÈÏÄÉÍÏ ÐÏÐÁÓÔØ ÐÒÉ ÚÁÐÒÏÓÅ /test/munin? ÷š/var/cache/test/munin/index.html ÉÌÉ ×š/var/cache/munin/index.html?

--
ðÅÔÒÏ×ÓËÉÊ áÌÅËÓÁÎÄÒ / Alexander Petrovsky,

Jabber: juise@xxxxxxxxx
Phone: +7 914 8 820 815
_______________________________________________
nginx-ru mailing list
nginx-ru@xxxxxxxxx
http://nginx.org/mailman/listinfo/nginx-ru


 




Copyright © Lexa Software, 1996-2009.