[mod_deflate] logging issue when not using virtual hosts

[mod_deflate] logging issue when not using virtual hosts

am 17.02.2010 10:20:54 von Anand Sathe

Hi,=0AI am having a peculiar issue with turning on logging for mod_deflate.=
Environment:=0AApache 2.2.6 running on Linux (SuSE 11 x86 64 bit).=0A=
I have no virtual hosts defined - all my configuration is in httpd.conf=0A=
=A0Here is a snapshot of my httpd.conf=0A----------------------------------=
----------------=0A# Filters allow you to process content before it is sent=
to the client.    =A0 AddOutputFilt=
erByType DEFLATE text/html text/plain text/xml application/xml application/=
xhtml+xml text/javascript text/css application/x-javascript  =A0=
   BrowserMatch ^Mozilla/4 gzip-only-text/html    =A0 BrowserMa=
tch ^Mozilla/4.0[678] no-gzip    =A0 BrowserMatch bMSIE !no-gzip !g=
zip-only-text/html    =A0 DeflateCompressionLevel 9    =A0 =
DeflateFilterNote Input instream    =A0 DeflateFilterNote Output ou=
tstream    =A0 DeflateFilterNote Ratio ratio    =A0 LogForm=
at '"%r" %{outstream}n/%{instream}n (%{ratio}n%%)' DEFLATE    =A0 D=
eflateFilterNote ratio    =A0 LogFormat '"%r" %b (%{ratio}n) "%{Use=
r-agent}i"' DEFLATE    =A0 CustomLog logs/deflate_log DEFLATE=0A fModule> =0AThe Problem: =0AContent is getting zipped as expected. How=
ever, the custom log (logs/deflate_log) gets created but stays empty - noth=
ing ever is recorded there.=0AI AM aware of this issue as mentioned in the =
httpd docs:=0A" If CustomLog or ErrorLog directives are placed inside a rtualHost> section, all requests or errors for that virtual host will be lo=
gged only to the specified file. Any virtual host which does not have loggi=
ng directives will still have its requests sent to the main server logs."=
However, since i do not have a virtual hosts section defined and my C=
ustomLog and ErrorLog directives are for the entire server, this should not=
apply to me (i think?) Any help appreciated=0AThanks!=0AAnand =
=0A

------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org

mod_deflate logging issue when not using virtual hosts

am 23.02.2010 06:40:50 von Anand Sathe

Trying one more time as the earlier post failed to garner any replies :)=0A=
Any help appreciated=0AAnand=0A----------- > Hi,=0A> I am having=
a peculiar issue with turning on logging for=0A> mod_deflate.=0A> =0A> Env=
ironment:=0A> Apache 2.2.6 running on Linux (SuSE 11 x86 64 bit).=0A> I hav=
e no virtual hosts defined - all my configuration is=0A> in httpd.conf=0A> =
=A0Here is a snapshot of my httpd.conf=0A> --------------------------------=
------------------=0A> # Filters allow you to process content before it is =
sent to=0A> the client.=0A> =0A> =0A>     =
AddOutputFilterByType DEFLATE text/html text/plain=0A> text/xml applicatio=
n/xml application/xhtml+xml =0A> =0A> text/javascript text/css application/=
x-javascript=0A>      BrowserMatch ^Mozilla/4 gzip-only-text/html=
=0A>      BrowserMatch ^Mozilla/4.0[678] no-gzip=0A>      B=
rowserMatch bMSIE !no-gzip !gzip-only-text/html=0A>      DeflateCom=
pressionLevel 9=0A>      DeflateFilterNote Input instream=0A> =A0=
  =A0 DeflateFilterNote Output outstream=0A>      DeflateFilter=
Note Ratio ratio=0A>      LogFormat '"%r" %{outstream}n/%{instream}=
n=0A> (%{ratio}n%%)' DEFLATE=0A>      DeflateFilterNote ratio=0A> =
     LogFormat '"%r" %b (%{ratio}n) "%{User-agent}i"'=0A> DEFLATE=
=0A>      CustomLog logs/deflate_log DEFLATE=0A>
=0A> =
=0A> =0A> The Problem: =0A> Content is getting zipped as expected. However,=
the custom=0A> log (logs/deflate_log) gets created but stays empty -=0A> n=
othing ever is recorded there.=0A> I AM aware of this issue as mentioned in=
the httpd docs:=0A> " If CustomLog or ErrorLog directives are placed insid=
e a=0A> section, all requests or errors for that=0A> virtual =
host will be logged only to the specified file. Any=0A> virtual host which =
does not have logging directives will=0A> still have its requests sent to t=
he main server logs."=0A> =0A> However, since i do not have a virtual hosts=
section=0A> defined and my CustomLog and ErrorLog directives are for the=
=0A> entire server, this should not apply to me (i think?)=0A> =0A> Any hel=
p appreciated=0A> Thanks!=0A> Anand=0A> =0A> =0A> =0A> =0A> =0A> =0A> -----=
------------------------------------------------------------ ----=0A> The of=
ficial User-To-User support forum of the Apache HTTP=0A> Server Project.=0A=
> See for more=0A> info.=0A> T=
o unsubscribe, e-mail: users-unsubscribe@httpd.apache.org=0A>   =A0"=A0=
  from the digest: users-digest-unsubscribe@httpd.apache.org=0A> For ad=
ditional commands, e-mail: users-help@httpd.apache.org=0A> =0A> =0A =


------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org

Re: mod_deflate logging issue when not using virtual hosts

am 04.03.2010 07:41:18 von Anand Sathe

Hello everyone,=0ATrying for the 3rd time ! am i in a minority of 1 on this=
issue? Would appreciate any thoughts at all anyone has=0ARegards=0A-Anand=
--- On Tue, 2/23/10, Anand Sathe wrote: =
> From: Anand Sathe =0A> Subject: [users@httpd] mod_=
deflate logging issue when not using virtual hosts=0A> To: users@httpd.apac=
he.org=0A> Date: Tuesday, February 23, 2010, 11:10 AM=0A> Trying one more t=
ime as the earlier=0A> post failed to garner any replies :)=0A> Any help ap=
preciated=0A> Anand=0A> -----------=0A> =0A> =0A> =0A> > Hi,=0A> > I am hav=
ing a peculiar issue with turning on logging=0A> for=0A> > mod_deflate.=0A>=
> =0A> > Environment:=0A> > Apache 2.2.6 running on Linux (SuSE 11 x86 64 =
bit).=0A> > I have no virtual hosts defined - all my configuration=0A> is=
=0A> > in httpd.conf=0A> > =A0Here is a snapshot of my httpd.conf=0A> > ---=
-----------------------------------------------=0A> > # Filters allow you t=
o process content before it is=0A> sent to=0A> > the client.=0A> > =0A> > <=
IfModule deflate_module>=0A> >      AddOutputFilterByType DEFLATE t=
ext/html=0A> text/plain=0A> > text/xml application/xml application/xhtml+xm=
l =0A> > =0A> > text/javascript text/css application/x-javascript=0A> > =A0=
  =A0 BrowserMatch ^Mozilla/4 gzip-only-text/html=0A> >      Br=
owserMatch ^Mozilla/4.0[678] no-gzip=0A> >      BrowserMatch bMSIE =
!no-gzip=0A> !gzip-only-text/html=0A> >      DeflateCompressionLeve=
l 9=0A> >      DeflateFilterNote Input instream=0A> >      =
DeflateFilterNote Output outstream=0A> >      DeflateFilterNote Rat=
io ratio=0A> >      LogFormat '"%r" %{outstream}n/%{instream}n=0A> =
> (%{ratio}n%%)' DEFLATE=0A> >      DeflateFilterNote ratio=0A> > =
     LogFormat '"%r" %b (%{ratio}n)=0A> "%{User-agent}i"'=0A> > DEF=
LATE=0A> >      CustomLog logs/deflate_log DEFLATE=0A> > >=0A> > =0A> > =0A> > The Problem: =0A> > Content is getting zipped as expe=
cted. However, the=0A> custom=0A> > log (logs/deflate_log) gets created but=
stays empty -=0A> > nothing ever is recorded there.=0A> > I AM aware of th=
is issue as mentioned in the httpd=0A> docs:=0A> > " If CustomLog or ErrorL=
og directives are placed=0A> inside a=0A> > section, all requ=
ests or errors=0A> for that=0A> > virtual host will be logged only to the s=
pecified=0A> file. Any=0A> > virtual host which does not have logging direc=
tives=0A> will=0A> > still have its requests sent to the main server=0A> lo=
gs."=0A> > =0A> > However, since i do not have a virtual hosts section=0A> =
> defined and my CustomLog and ErrorLog directives are=0A> for the=0A> > en=
tire server, this should not apply to me (i think?)=0A> > =0A> > Any help a=
ppreciated=0A> > Thanks!=0A> > Anand=0A> > =0A> > =0A> > =0A> > =0A> > =0A>=
> =0A> >=0A> ------------------------------------------------------------ -=
--------=0A> > The official User-To-User support forum of the Apache=0A> HT=
TP=0A> > Server Project.=0A> > See tml> for more=0A> > info.=0A> > To unsubscribe, e-mail: users-unsubscribe@h=
ttpd.apache.org=0A> >   =A0"  =A0from the digest: users-digest-unsu=
bscribe@httpd.apache.org=0A> > For additional commands, e-mail: users-help@=
httpd.apache.org=0A> > =0A> > =0A> =0A> =0A> =A0 =0A> =0A> ----------------=
-----------------------------------------------------=0A> The official User=
-To-User support forum of the Apache HTTP=0A> Server Project.=0A> See http://httpd.apache.org/userslist.html> for more=0A> info.=0A> To unsubscri=
be, e-mail: users-unsubscribe@httpd.apache.org=0A>   =A0"  =A0from =
the digest: users-digest-unsubscribe@httpd.apache.org=0A> For additional co=
mmands, e-mail: users-help@httpd.apache.org=0A> =0A> =0A

------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org