Quantcast
Channel: Nginx Forum - Nginx Mailing List - Russian
Viewing all articles
Browse latest Browse all 3102

location = / (no replies)

$
0
0
Всем привет.
Что я делаю не так:

server {
listen 80 default_server;

root /var/www;

location = / {
access_log /var/log/nginx/root_access.log main;
}
location / {
access_log /var/log/nginx/other_access.log main;
}
}

cat other_access.log
192.168.252.200 - - [19/Oct/2014:10:38:37 -0400] "GET / HTTP/1.1" 200 5 "-" "Gecko/20100101 Firefox/33.0" “-"

Запрос попал во второй location, но согласно документации должен был попасть в первый.
Почему так ?

nginx -v
nginx version: nginx/1.6.2
CentOS 6.5

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

Viewing all articles
Browse latest Browse all 3102

Trending Articles