Welcome! Log In Create A New Profile

Advanced

location = /

Anonymous User
October 19, 2014 10:54AM
Всем привет.
Что я делаю не так:

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
Subject Author Posted

location = /

Anonymous User October 19, 2014 10:54AM

Re: location = /

Maxim Dounin October 20, 2014 01:52AM

Re: location = /

Anonymous User October 20, 2014 02:08AM

Re: location = /

Maxim Dounin October 20, 2014 02:36AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 167
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready