ignoring localhost access?

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)? ...


Go Back   Usenet Forums > Web Server and Related Forums > Apache Web Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 11-01-2003
colin
 
Posts: n/a
Default ignoring localhost access?

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


  #2 (permalink)  
Old 11-01-2003
Davide Bianchi
 
Posts: n/a
Default Re: ignoring localhost access?

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
  #3 (permalink)  
Old 11-01-2003
Mcploppy ©
 
Posts: n/a
Default Re: ignoring localhost access?


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 }


  #4 (permalink)  
Old 11-01-2003
Mcploppy ©
 
Posts: n/a
Default Re: ignoring localhost access?


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"


  #5 (permalink)  
Old 11-01-2003
Davide Bianchi
 
Posts: n/a
Default Re: ignoring localhost access?

"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
  #6 (permalink)  
Old 11-01-2003
Mcploppy ©
 
Posts: n/a
Default Re: ignoring localhost access?


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 ;-)


  #7 (permalink)  
Old 11-01-2003
colin
 
Posts: n/a
Default Re: ignoring localhost access?


"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.


  #8 (permalink)  
Old 11-01-2003
Mcploppy ©
 
Posts: n/a
Default Re: ignoring localhost access?


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


  #9 (permalink)  
Old 11-01-2003
colin
 
Posts: n/a
Default Re: ignoring localhost access?


"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?


  #10 (permalink)  
Old 11-01-2003
Jeroen Smaal
 
Posts: n/a
Default Re: ignoring localhost access?


"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.


 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 06:31 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0