Disabling access logs from HW Load Balancers
Corey Donohoe
atmos at atmos.org
Fri Sep 28 09:08:41 MSD 2007
On 9/27/07, Igor Sysoev <is at rambler-co.ru> wrote:
> On Thu, Sep 27, 2007 at 05:47:16PM -0600, Corey Donohoe wrote:
>
> > Hey Guys,
> >
> > Has anyone gotten this,
> > http://wiki.codemongers.com/HWLoadbalancerCheckErrors, working with an
> > LVS/Keepalived solution? Does anyone know what version this feature
> > became available? I've tried it with various 0.6.x releases and I'm
> > still getting the 400 errors logged.
> >
> > Any tips on getting this working?
>
> Try
>
> location = /400 {
> if ($lb) {
> access_log off;
> + return 400;
> }
> return 400;
> }
>
> --
> Igor Sysoev
> http://sysoev.ru/en/
>
>
Still logging... I have multiple error_page definitions in my server
block, would that make a difference? nginx 0.6.6
error_page 400 /400;
error_page 500 502 503 504 /500.html;
location = /500.html {
root /data/atmos/current/public;
}
location = /400 {
if ($lb) {
access_log off;
return 400;
}
return 400;
}
--
Corey Donohoe
http://www.atmos.org/
More information about the nginx
mailing list