You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Michael Douglass <mi...@staff.texas.net> on 1999/08/03 01:51:06 UTC
duplicate access_log entries
I have a testbed apache server where I am testing out some different
things that my company is going to start supporting. (I won't
mention what as it has something to do with M$--but anyway...) I
setup several named virtual hosts and I noticed that the access_log
lines were being written twice. I untarred 1.3.6 completely and rebuilt
Apache from scratch and it still does the same thing. Then I started to
look and see if this had been a bug fixed in the up-and-coming 1.3.7 turned
1.3.8. I could find nothing of the sort so I dug further.
The virtual host definitions do not have their own access_log definitions;
however I have found that if I do define an access_log in the virtualhost
definition the entries are written to that file with only 1 entry per hit--
versus the 2 entries. I've not had time to sit down and figure this one
out, nor am I probably going to as it doesn't directly affect any of my
live servers.
Thought you guys might like to know this if this is not a "known" bug (
or a "fixed" bug at that).
--
Michael Douglass
Texas Networking, Inc.
Any sufficiently advanced bug is indistinguishable for a feature.
-- from some indian guy
Re: duplicate access_log entries
Posted by Ian Kallen <sp...@salon.com>.
Taking this off list: without seeing your httpd.conf it's hard to say --
I definitely don't get this behavior with namevirtualhosts on 1.3.6,
want to show me your conf file?
Michael Douglass wrote:
>
> No, I disagree. vhost directives are suppose to override--if I don't
> specify an access-log then it should go to the default one... and it
> should go into that log file once; not twice. There's no reason that
> I should get two entries per hit in my access_log file.
>
> There were no oddball virtual directives at all, this is a bug--not a
> feature.
>
> On Tue, Aug 03, 1999 at 04:18:00PM -0700, Ian Kallen said:
> > Bug? I think this is an undocumented feature ;)
> >
> > It's safest to put your vhost specific directives (logging, redirects,
> > and what not) in virtualhost stanzas and not in the "main" server
> > config. Make your "main" server a virtualhost and you'll get the
> > expected results; make a screwy mix of "main" directives and vhost
> > directives and you end up some oddball behaviors when they merge.
> >
> > Perhaps an explanation in the docs to accompany the @
> > http://www.apache.org/docs/sections.html that includes the interaction
> > with vhost's would be in good. I'll volunteer myself to write it up,
> > um, after the conference. :)
> > -Ian
> >
> > Michael Douglass wrote:
> > >
> > > I have a testbed apache server where I am testing out some different
> > > things that my company is going to start supporting. (I won't
> > > mention what as it has something to do with M$--but anyway...) I
> > > setup several named virtual hosts and I noticed that the access_log
> > > lines were being written twice. I untarred 1.3.6 completely and rebuilt
> > > Apache from scratch and it still does the same thing. Then I started to
> > > look and see if this had been a bug fixed in the up-and-coming 1.3.7 turned
> > > 1.3.8. I could find nothing of the sort so I dug further.
> > >
> > > The virtual host definitions do not have their own access_log definitions;
> > > however I have found that if I do define an access_log in the virtualhost
> > > definition the entries are written to that file with only 1 entry per hit--
> > > versus the 2 entries. I've not had time to sit down and figure this one
> > > out, nor am I probably going to as it doesn't directly affect any of my
> > > live servers.
> > >
> > > Thought you guys might like to know this if this is not a "known" bug (
> > > or a "fixed" bug at that).
> > >
> > > --
> > > Michael Douglass
> > > Texas Networking, Inc.
> > >
> > > Any sufficiently advanced bug is indistinguishable for a feature.
> > > -- from some indian guy
> >
> > --
> > Salon Internet http://www.salon.com/
> > HTTP mechanic, Perl diver, Mebwaster, Some of the above
> > Ian Kallen <id...@salon.com> / AIM: iankallen / Fax: (561) 619-0995
>
> --
> Michael Douglass
> Texas Networking, Inc.
>
> Any sufficiently advanced bug is indistinguishable for a feature.
> -- from some indian guy
--
Salon Internet http://www.salon.com/
HTTP mechanic, Perl diver, Mebwaster, Some of the above
Ian Kallen <id...@salon.com> / AIM: iankallen / Fax: (561) 619-0995
Re: duplicate access_log entries
Posted by Michael Douglass <mi...@staff.texas.net>.
No, I disagree. vhost directives are suppose to override--if I don't
specify an access-log then it should go to the default one... and it
should go into that log file once; not twice. There's no reason that
I should get two entries per hit in my access_log file.
There were no oddball virtual directives at all, this is a bug--not a
feature.
On Tue, Aug 03, 1999 at 04:18:00PM -0700, Ian Kallen said:
> Bug? I think this is an undocumented feature ;)
>
> It's safest to put your vhost specific directives (logging, redirects,
> and what not) in virtualhost stanzas and not in the "main" server
> config. Make your "main" server a virtualhost and you'll get the
> expected results; make a screwy mix of "main" directives and vhost
> directives and you end up some oddball behaviors when they merge.
>
> Perhaps an explanation in the docs to accompany the @
> http://www.apache.org/docs/sections.html that includes the interaction
> with vhost's would be in good. I'll volunteer myself to write it up,
> um, after the conference. :)
> -Ian
>
> Michael Douglass wrote:
> >
> > I have a testbed apache server where I am testing out some different
> > things that my company is going to start supporting. (I won't
> > mention what as it has something to do with M$--but anyway...) I
> > setup several named virtual hosts and I noticed that the access_log
> > lines were being written twice. I untarred 1.3.6 completely and rebuilt
> > Apache from scratch and it still does the same thing. Then I started to
> > look and see if this had been a bug fixed in the up-and-coming 1.3.7 turned
> > 1.3.8. I could find nothing of the sort so I dug further.
> >
> > The virtual host definitions do not have their own access_log definitions;
> > however I have found that if I do define an access_log in the virtualhost
> > definition the entries are written to that file with only 1 entry per hit--
> > versus the 2 entries. I've not had time to sit down and figure this one
> > out, nor am I probably going to as it doesn't directly affect any of my
> > live servers.
> >
> > Thought you guys might like to know this if this is not a "known" bug (
> > or a "fixed" bug at that).
> >
> > --
> > Michael Douglass
> > Texas Networking, Inc.
> >
> > Any sufficiently advanced bug is indistinguishable for a feature.
> > -- from some indian guy
>
> --
> Salon Internet http://www.salon.com/
> HTTP mechanic, Perl diver, Mebwaster, Some of the above
> Ian Kallen <id...@salon.com> / AIM: iankallen / Fax: (561) 619-0995
--
Michael Douglass
Texas Networking, Inc.
Any sufficiently advanced bug is indistinguishable for a feature.
-- from some indian guy
Re: duplicate access_log entries
Posted by Ian Kallen <sp...@salon.com>.
Bug? I think this is an undocumented feature ;)
It's safest to put your vhost specific directives (logging, redirects,
and what not) in virtualhost stanzas and not in the "main" server
config. Make your "main" server a virtualhost and you'll get the
expected results; make a screwy mix of "main" directives and vhost
directives and you end up some oddball behaviors when they merge.
Perhaps an explanation in the docs to accompany the @
http://www.apache.org/docs/sections.html that includes the interaction
with vhost's would be in good. I'll volunteer myself to write it up,
um, after the conference. :)
-Ian
Michael Douglass wrote:
>
> I have a testbed apache server where I am testing out some different
> things that my company is going to start supporting. (I won't
> mention what as it has something to do with M$--but anyway...) I
> setup several named virtual hosts and I noticed that the access_log
> lines were being written twice. I untarred 1.3.6 completely and rebuilt
> Apache from scratch and it still does the same thing. Then I started to
> look and see if this had been a bug fixed in the up-and-coming 1.3.7 turned
> 1.3.8. I could find nothing of the sort so I dug further.
>
> The virtual host definitions do not have their own access_log definitions;
> however I have found that if I do define an access_log in the virtualhost
> definition the entries are written to that file with only 1 entry per hit--
> versus the 2 entries. I've not had time to sit down and figure this one
> out, nor am I probably going to as it doesn't directly affect any of my
> live servers.
>
> Thought you guys might like to know this if this is not a "known" bug (
> or a "fixed" bug at that).
>
> --
> Michael Douglass
> Texas Networking, Inc.
>
> Any sufficiently advanced bug is indistinguishable for a feature.
> -- from some indian guy
--
Salon Internet http://www.salon.com/
HTTP mechanic, Perl diver, Mebwaster, Some of the above
Ian Kallen <id...@salon.com> / AIM: iankallen / Fax: (561) 619-0995