Welcome! Log In Create A New Profile

Advanced

помогите разобраться

Хордов Роман
April 03, 2011 04:18PM
nginx/0.8.53 выдаёт такой лог:
[notice] 6807#0: *1 "\.(js|gif|jpg|jpeg|png|css|swf|html|ppt|mov|txt|xls|php)$" does not match "/usr/share/nginx/html/"

Но в nginx.conf нигде не прописано /usr/share/nginx/html/
Почему тогда ссылается на директорию по умолчанию?

server {
server_name site.com www.site.com;
location / {
root /var/www;
index index.php;
}

if ($request_filename !~* \.(js|gif|jpg|jpeg|png|css|swf|html|ppt|mov|txt|xls|php)$) {
rewrite ^(.*)$ /index.php;
}

location ~ \.php$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /var/www$fastcgi_script_name;
include fastcgi_params;
}
}

_______________________________________________
nginx-ru mailing list
nginx-ru@nginx.org
http://nginx.org/mailman/listinfo/nginx-ru
Subject Author Posted

помогите разобраться

Хордов Роман April 03, 2011 04:18PM

Re: помогите разобраться

Maxim Dounin April 03, 2011 05:20PM

Re: помогите разобраться

Anton Yuzhaninov April 03, 2011 05:26PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 146
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready