Problem with error file
Jim Ohlstein
jim at ohlste.in
Mon Feb 29 15:34:48 UTC 2016
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 at nginx.org] En nombre de Maxim Dounin
> Enviado el: lunes, 29 de febrero de 2016 11:49
> Para: nginx at 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
More information about the nginx
mailing list