Welcome! Log In Create A New Profile


Logging 'return 404' to error log?

October 18, 2012 08:41AM
Asked this in How to... forum, but it seems not much activity, so i try to post in here... Anyone know this?

I'm have a question like title subject. I have an nginx/1.2.1 installation, the nginx configuration like this:

location ~ ^/abc/ {
if (!-e $request_filename) {
return 404;
include /etc/nginx/proxy.conf;

config running good, but all the 404 log from this "return 404;" move to access log. I want it move to error log, so I try use log_not_found but have syntax error.

Do you have an idea how to do this?

Sorry for my poor english!

Subject Author Posted

Logging 'return 404' to error log?

vinhomn October 18, 2012 08:41AM

Sorry, only registered users may post in this forum.

Click here to login

Online Users

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