Welcome! Log In Create A New Profile

Advanced

Default Logging?

Tomas Zulberti
April 05, 2010 04:20PM
Hi. I am using nginx version 0.7.65, compiled with wsgi and geoip.
The configuration tells the access log to save the file on /mnt.
The problem is that for one that, there is no access log... An example
of the configuration is as follows:

server {
// ...
if (condition 1) {
access_log /mnt/file.txt
// Other things things
}

if (condition 2) {
access_log /mnt/file2.txt
// Other things things 2
}

if (condition 3) {
// Other things things 3
}
}

The problem is that when condition 3 happens, it logs the combiend
data to NGINX_FOLDER/logs/access.log in the combined way... There
isn't any other access_log (the ones on nginx.conf were deleted). So
the question is: nginx always log to logs/access.log if there is no
log?

Thanks in advance,
Tomas Zulberti

pd: Sorry for my bad english..

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

Default Logging?

Tomas Zulberti April 05, 2010 04:20PM

Re: Default Logging?

Maxim Dounin April 05, 2010 07:28PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 200
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