Welcome! Log In Create A New Profile

Advanced

Disabling logging of absolute paths

U.Mutlu
January 07, 2012 10:38AM
Is there a switch to suppress the logging of absolute paths in the log files?
Only paths relative to the html directory should be logged.
Reason: I don't want disclose my file system structure when posting log excerpts to abuse desks etc.

Sanitized example:
2012/01/02 00:04:48 [error] 566#0: *966 open() "/bla/foo/nginx/html/admin/index.php" failed (2: No such file or directory), client: 111.171.207.252, server: localhost, request: "GET //admin/index.php HTTP/1.1", host: "x.200.43.136"

Ie. the "/bla/foo/nginx/html" part should not be logged.

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

Disabling logging of absolute paths

U.Mutlu January 07, 2012 10:38AM

Re: Disabling logging of absolute paths

Brian Akins January 07, 2012 12:48PM

Re: Disabling logging of absolute paths

Maxim Dounin January 07, 2012 03:58PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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