This is a discussion on ignoring localhost access? within the Apache Web Server forums, part of the Web Server and Related Forums category; Hi Does anyone know how to stop apache from logging access from the computer on which it's hosted (localhost)? ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Hi
Does anyone know how to stop apache from logging access from the computer on which it's hosted (localhost)? My reason for this is that access from my computer is skewing the stats of my webserver, because I'm not an external visitor. Other computers on my LAN still need to be logged, but not this one. Anyone know? Many thanks Colin |
|
|||
|
colin <colin#@#j0o.com> wrote:
> Does anyone know how to stop apache from logging access from the computer on > which it's hosted (localhost)? You have to use conditional logging. See the documentation on www.apache.org. Check http://httpd.apache.org/docs/logs.html#conditional Davide |
|
|||
|
Davide Bianchi bashed at the keyboard and said : > colin <colin#@#j0o.com> wrote: >> Does anyone know how to stop apache from logging access from the >> computer on which it's hosted (localhost)? > > You have to use conditional logging. See the documentation on > www.apache.org. > Check http://httpd.apache.org/docs/logs.html#conditional > > Davide Thanks.... I've been trying to sort that one as well Cheers -- Mcploppy © { Remove both MyShoes to email me } { Homepage: http://tinyurl.com/bbel } { My Alternative Site: http://tinyurl.com/rynb } |
|
|||
|
Davide Bianchi bashed at the keyboard and said : > colin <colin#@#j0o.com> wrote: >> Does anyone know how to stop apache from logging access from the >> computer on which it's hosted (localhost)? > > You have to use conditional logging. See the documentation on > www.apache.org. > Check http://httpd.apache.org/docs/logs.html#conditional > > Davide Something to note re the information supplied at http://httpd.apache.org/docs/logs.html#conditional SetEnvIf Remote_Addr "127.0.0.1" dontlog ------ this does not work I had to replace "dontlog" with "nolog" |
|
|||
|
"Mcploppy ©" <gregMYSHOEScrawfordMYSHOES@hotmail.com> wrote:
> SetEnvIf Remote_Addr "127.0.0.1" dontlog ------ this does not work I had > to replace "dontlog" with "nolog" Did you sent them a bug report also? Is worth signaling. Davide |
|
|||
|
Davide Bianchi bashed at the keyboard and said : > "Mcploppy ©" <gregMYSHOEScrawfordMYSHOES@hotmail.com> wrote: >> SetEnvIf Remote_Addr "127.0.0.1" dontlog ------ this does not work >> I had to replace "dontlog" with "nolog" > > Did you sent them a bug report also? Is worth signaling. > > Davide No but I could ;-) |
|
|||
|
"Mcploppy ©" <gregMYSHOEScrawfordMYSHOES@hotmail.com> wrote in message news:bo0q8e$163bjk$1@ID-201331.news.uni-berlin.de... | | Davide Bianchi bashed at the keyboard and said : | | > colin <colin#@#j0o.com> wrote: | >> Does anyone know how to stop apache from logging access from the | >> computer on which it's hosted (localhost)? | > | > You have to use conditional logging. See the documentation on | > www.apache.org. | > Check http://httpd.apache.org/docs/logs.html#conditional | > | > Davide | | Something to note re the information supplied at | http://httpd.apache.org/docs/logs.html#conditional | | SetEnvIf Remote_Addr "127.0.0.1" dontlog ------ this does not work I had | to replace "dontlog" with "nolog" That didn't work for me. I set the localhost IP to 192.168.1.1 (which it is), and tried both nolog and don't log, yet it STILL shows up in my access logs. I also tried "192\.168\.1\.1" which didn't work either. Any ideas? =( C. |
|
|||
|
colin bashed at the keyboard and said : > "Mcploppy ©" <gregMYSHOEScrawfordMYSHOES@hotmail.com> wrote in message > news:bo0q8e$163bjk$1@ID-201331.news.uni-berlin.de... >> >> Davide Bianchi bashed at the keyboard and said : >> >>> colin <colin#@#j0o.com> wrote: >>>> Does anyone know how to stop apache from logging access from the >>>> computer on which it's hosted (localhost)? >>> >>> You have to use conditional logging. See the documentation on >>> www.apache.org. >>> Check http://httpd.apache.org/docs/logs.html#conditional >>> >>> Davide >> >> Something to note re the information supplied at >> http://httpd.apache.org/docs/logs.html#conditional >> >> SetEnvIf Remote_Addr "127.0.0.1" dontlog ------ this does not work >> I had to replace "dontlog" with "nolog" > > > That didn't work for me. I set the localhost IP to 192.168.1.1 > (which it is), and tried both nolog and don't log, yet it STILL shows > up in my access logs. I also tried "192\.168\.1\.1" which didn't > work either. > > Any ideas? =( > > C. Hi Colin SetEnvIf Remote_Addr "192.168.1.1" nolog Cut 'n' Paste the above line |
|
|||
|
"Mcploppy ©" <gregMYSHOEScrawfordMYSHOES@hotmail.com> wrote in message news:bo0um7$15qraf$1@ID-201331.news.uni-berlin.de... | | colin bashed at the keyboard and said : | | > "Mcploppy ©" <gregMYSHOEScrawfordMYSHOES@hotmail.com> wrote in message | > news:bo0q8e$163bjk$1@ID-201331.news.uni-berlin.de... | >> | >> Davide Bianchi bashed at the keyboard and said : | >> | >>> colin <colin#@#j0o.com> wrote: | >>>> Does anyone know how to stop apache from logging access from the | >>>> computer on which it's hosted (localhost)? | >>> | >>> You have to use conditional logging. See the documentation on | >>> www.apache.org. | >>> Check http://httpd.apache.org/docs/logs.html#conditional | >>> | >>> Davide | >> | >> Something to note re the information supplied at | >> http://httpd.apache.org/docs/logs.html#conditional | >> | >> SetEnvIf Remote_Addr "127.0.0.1" dontlog ------ this does not work | >> I had to replace "dontlog" with "nolog" | > | > | > That didn't work for me. I set the localhost IP to 192.168.1.1 | > (which it is), and tried both nolog and don't log, yet it STILL shows | > up in my access logs. I also tried "192\.168\.1\.1" which didn't | > work either. | > | > Any ideas? =( | > | > C. | | Hi Colin | | SetEnvIf Remote_Addr "192.168.1.1" nolog | | Cut 'n' Paste the above line Hi, I pasted the line into my apache.conf as you suggested but I'm still seeing accesses from 192.168.1.1 in the access.log file. Is there anything else I should enable? |
|
|||
|
"colin" <colin#@#j0o.com> wrote in message news:XzSob.2997$2q4.19313877@news-text.cableinet.net... > > "Mcploppy ©" <gregMYSHOEScrawfordMYSHOES@hotmail.com> wrote in message > news:bo0q8e$163bjk$1@ID-201331.news.uni-berlin.de... > | > | Davide Bianchi bashed at the keyboard and said : > | > | > colin <colin#@#j0o.com> wrote: > | >> Does anyone know how to stop apache from logging access from the > | >> computer on which it's hosted (localhost)? > | > > | > You have to use conditional logging. See the documentation on > | > www.apache.org. > | > Check http://httpd.apache.org/docs/logs.html#conditional > | > > | > Davide > | > | Something to note re the information supplied at > | http://httpd.apache.org/docs/logs.html#conditional > | > | SetEnvIf Remote_Addr "127.0.0.1" dontlog ------ this does not work I had > | to replace "dontlog" with "nolog" > > > That didn't work for me. I set the localhost IP to 192.168.1.1 (which it > is), and tried both nolog and don't log, yet it STILL shows up in my access > logs. I also tried "192\.168\.1\.1" which didn't work either. > > Any ideas? =( > > C. > > You're just setting an environment variable, it should not make any difference what you're calling it, as long as it's the same in the SetEnvIf and CustomLog directives. SetEnvIf Remote_Addr "127\.0\.0\.1" blah and CustomLog "whatever" env=!blah Should work just as well. Jeroen. |