Welcome! Log In Create A New Profile

Advanced

Re: Problem with error file

All files from this thread

File Name File Size   Posted by Date  
nginx.conf 2.7 KB open | download Ing. Ricardo SIFON 02/29/2016 Read message
February 29, 2016 10:36AM
Hello,

On 2/29/16 10:24 AM, Ing. Ricardo SIFON wrote:
> Maxim,
>
> How should I set nginx to avoid writing in the "off" file?
>

You can set error logging to a different level. See
http://nginx.org/en/docs/ngx_core_module.html#error_log.

Also, since it seems to be one file, you can use the "log_not_found"
directive. See
http://nginx.org/en/docs/http/ngx_http_core_module.html#log_not_found.

Something like:

location = /robots.txt {
log_not_found off;
access_log off;
}

>
>
> -----Mensaje original-----
> De: nginx [mailto:nginx-bounces@nginx.org] En nombre de Maxim Dounin
> Enviado el: lunes, 29 de febrero de 2016 11:49
> Para: nginx@nginx.org
> Asunto: Re: Problem with error file
>
> Hello!
>
> On Mon, Feb 29, 2016 at 11:39:04AM -0300, Ing. Ricardo SIFON wrote:
>
>> Maxim,
>>
>> I'm Sorry, I have made a mistake.
>>
>> As you say, the line called: error_log is in "off" in config file.
>>
>> The file that I have problems is called: off (without extensión) in
>> C:\nginx.
>
> So no problem here, nginx works exactly as you've configured it,
> writes errors to the file named "off". If you want it to work
> differently - configure it differently.
>

--
Jim Ohlstein


"Never argue with a fool, onlookers may not be able to tell the
difference." - Mark Twain

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

Problem with error file Attachments

Ing. Ricardo SIFON February 29, 2016 07:48AM

Re: Problem with error file

itpp2012 February 29, 2016 08:43AM

Re: Problem with error file

Maxim Dounin February 29, 2016 08:56AM

RE: Problem with error file

Ing. Ricardo SIFON February 29, 2016 09:40AM

Re: Problem with error file

Maxim Dounin February 29, 2016 09:50AM

RE: Problem with error file

Ing. Ricardo SIFON February 29, 2016 10:24AM

Re: Problem with error file

Maxim Dounin February 29, 2016 10:34AM

Re: Problem with error file

Jim Ohlstein February 29, 2016 10:36AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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