Welcome! Log In Create A New Profile

Advanced

Re: can't disable logging of static resources like images

B.R.
October 29, 2014 07:54PM
IMO your configuration looks like an include maze/mess, so I won't dig to
far in it.

From what I saw you define at least 2 servers listening on port 80 with
nothing to differentiate them from each other (such as a server_name).
I thought that kind of configuration was rejected by nginx, if my memory
does not fail me.

I would:
1°) Check your configuration is accepted by nginx and effectively applied
(testing it before reload + on reload, check the error log)
2°) 1 request is served by 1 location only. Ensure you are up to speed with
location modifier precedence (see location
<http://nginx.org/en/docs/http/ngx_http_core_module.html#location>
documentation) and that your request is effectively being served by the
pointed location

The 'bug' you see comes from either point: Or your configuration is not
applied, or your request is being served somewhere else.

To simplify this test procedure, I strongly recommend you to come down to a
minimal configuration avoiding useless includes until you can narrow the
problem down.
Once that done, I would then progressively add the includes again.
During that process, I would also taking the opportunity of
cleaning/reorganizing it better. That would help maintenance, and nginx
configuration as been thought to allow scalable configuration, so you can
for sure do better than that.

Seeing the mess in your configuration, I would not call for a bug in the
most widely directive ever used by nginx, but rather call for having
creating your own doom with such poorly written conf... ;o)
Good luck,
---
*B. R.*

On Wed, Oct 29, 2014 at 8:38 PM, Igal @ getRailo.org <igal@getrailo.org>
wrote:

> does the order of access_log directives matter?
>
> I can't disable the logging of static resources.
>
> I have the main config file which contains the access_log directive at
> line #74
> https://gist.github.com/igal-getrailo/6981111#file-1-nginx-railo-conf
>
> and includes a config file for each site like
> https://gist.github.com/igal-getrailo/6981111#file-3-nginx-site-site1-conf
>
> I expect line 32 at the included file to disable to access log for these
> files but they are still logged.
>
> any ideas?
>
> Thanks
>
> --
> Igal Sapir
> Railo Core Developer
> http://getRailo.org/
>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
>
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

can't disable logging of static resources like images

Igal @ getRailo.org October 29, 2014 03:40PM

Re: can't disable logging of static resources like images

B.R. October 29, 2014 07:54PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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