httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Boyle Owen" <Owen.Bo...@swx.com>
Subject RE: [users@httpd] Problem with Mod_Deflate & Virtual Hosts
Date Fri, 19 Jan 2007 07:39:57 GMT
I had another look at your setup - I think the problem is your
Content-type in the response. AFAIU, for mod_deflate to kick in, the
Content-type has to match one of the content-types in the argument list
to directive AddOutputFilterByType. YOu have:

AddOutputFilterByType DEFLATE text/html text/plain text/xml image/jpg
image/jpeg image/gif image/png application/xml

but 

Content-Type: application/xhtml+xml; charset=utf-8 

in the response...

What happens if you request a plain, old HTML file instead of the
whizzo-complicated ASP thingy?

Read also the note in the big red box on page
http://httpd.apache.org/docs/2.2/mod/core.html#addoutputfilterbytype. 

BTW, you're asking mod_deflate to compress image files, but these are
already compressed - so you can't compress them further.

Rgds,
Owen Boyle
Disclaimer: Any disclaimer attached to this message may be ignored. 

> -----Original Message-----
> From: Graeme Walker [mailto:graeme.walker1@gmail.com] 
> Sent: Thursday, January 18, 2007 1:11 PM
> To: users@httpd.apache.org
> Subject: Re: [users@httpd] Problem with Mod_Deflate & Virtual Hosts
> 
> Hi Owen,
> 
> Request:
> 
> http://www.cyberhawk.ath.cx/home.aspx?sid=2de08bd0-3c6e-47f6-8
faf-65181d19e0c3
> 
> GET /home.aspx?sid=2de08bd0-3c6e-47f6-8faf-65181d19e0c3 HTTP/1.1 
> Host: www.cyberhawk.ath.cx
> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; 
> rv:1.8.1.1) Gecko/20061204 Firefox/2.0.0.1
> Accept: 
> text/xml,application/xml,application/xhtml+xml,text/html;q= 
> 0.9,text/plain;q=0.8,image/png,*/*;q=0.5
> Accept-Language: en-us,en;q=0.5
> Accept-Encoding: gzip,deflate
> Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
> Keep-Alive: 300
> Connection: keep-alive
> Cookie: 
> cImage_UserPassword=xDq5UCrSoOciMK/5aKWuCldlu72ivHV3rP3HMYfpIT
> kxNzQ4OTgxMTY0MTYyMTE=; collapseprefs=; cImage_UserID=35 
> 
> Response:
> 
> HTTP/1.x 200 OK
> Date: Thu, 18 Jan 2007 12:08:14 GMT
> Server: Apache/2.2.4 (Win32) mod_ssl/2.2.3 OpenSSL/0.9.8b 
> mod_aspdotnet/2.2
> X-AspNet-Version: 2.0.50727
> Set-Cookie: ASP.NET_SessionId=bszg2lvf2mw4wf55pmfp41qb ; 
> path=/; HttpOnly
> Cache-Control: private
> Content-Length: 73453
> Vary: Accept-Encoding,User-Agent
> Keep-Alive: timeout=5, max=100
> Connection: Keep-Alive
> Content-Type: application/xhtml+xml; charset=utf-8
> 
> 
> Any thoughts?
> 
> 
> On 18/01/07, Boyle Owen <Owen.Boyle@swx.com> wrote:
> 
> 
> 
> 	> -----Original Message-----
> 	> From: Graeme Walker [mailto:graeme.walker1@gmail.com]
> 	> Sent: Thursday, January 18, 2007 10:23 AM
> 	> To: users@httpd.apache.org <mailto:users@httpd.apache.org> 
> 	> Subject: Re: [users@httpd] Problem with Mod_Deflate & 
> Virtual Hosts
> 	>
> 	> Thanks for the reply, so I assume my configuration is
> 	> correct?
> 	
> 	I wouldn't assume that... your config is complicated 
> and might easily 
> 	have a bug. That's what you have to find out.
> 	
> 	Since you already have FF, get the LiveHTTPHeaders 
> extension and check
> 	for sure. Or try from the command line (as recommended earlier)
> 	
> 	Rgds,
> 	Owen Boyle 
> 	Disclaimer: Any disclaimer attached to this message may 
> be ignored.
> 	
> 	>Looking at the network setting in Firefox
> 	> (About:config) The network.http.accept-encoding setting has
> 	> gzip,deflate in it, so it should be sending it, but I'll 
> 	> check the headers. I just thought it was odd the fact that
> 	> ap_headers bit in the apache log, as I would have thought
> 	> that would be a sign of it working.
> 	>
> 	> Cheers
> 	> Graeme
> 	> 
> 	>
> 	> On 18/01/07, Boyle Owen <Owen.Boyle@swx.com> wrote:
> 	>
> 	>       > -----Original Message-----
> 	>       > From: Graeme Walker [mailto: 
> graeme.walker1@gmail.com <mailto:graeme.walker1@gmail.com> ]
> 	>       > Sent: Wednesday, January 17, 2007 10:55 PM
> 	>       > To: users@httpd.apache.org <mailto: 
> users@httpd.apache.org <mailto:users@httpd.apache.org> >
> 	>       > Subject: [users@httpd] Problem with Mod_Deflate &
> 	> Virtual Hosts
> 	>       >
> 	>       > Hi,
> 	>       >
> 	>       > I am trying to get mod_deflate working with 
> my virtual hosts, 
> 	>       > however it does not appear to be doing 
> anything. I am using
> 	>       > Apache 2.2.4.
> 	>
> 	>       The client has to tell the server that it can accept
> 	> zipped content. It
> 	>       does this by sending a request header like: 
> 	>
> 	>       Accept-Encoding: gzip,deflate
> 	>
> 	>       Is your client doing this? Try it on the command-line
> 	> or get Firefox
> 	>       with LiveHTTPHeaders to check...
> 	>
> 	>       Rgds, 
> 	>       Owen Boyle
> 	>       Disclaimer: Any disclaimer attached to this message may
> 	> be ignored.
> 	>
> 	>
> 	>       >
> 	>       > My Config is as follows:
> 	>       >
> 	>       > NameVirtualHost *:80 
> 	>       > Listen 80
> 	>       >
> 	>       > <VirtualHost *:80>
> 	>       >   ServerName www.domain.com
> 	>       >   ServerSignature On
> 	>       >   DocumentRoot "D:/Website_Dev/cImages/cimage" 
> 	>       >   AddOutputFilterByType DEFLATE text/html 
> text/plain text/xml
> 	>       > image/jpg image/jpeg image/gif image/png 
> application/xml
> 	>       > application/xhtml+xml
> 	>       >   DeflateFilterNote Input instream 
> 	>       >     DeflateFilterNote Output outstream
> 	>       >     DeflateFilterNote Ratio ratio
> 	>       >     DeflateCompressionLevel 9
> 	>       >     LogFormat '%t %r %{outstream}n/%{instream}n 
> 	>       > (%{ratio}n%%)' deflate
> 	>       >     CustomLog logs/deflate_main.log deflate
> 	>       >     LogLevel Debug
> 	>       > </VirtualHost>
> 	>       >
> 	>       > Within my deflate_main.log is showing no compression. 
> 	>       >
> 	>       > The error log from apache is showing:
> 	>       >
> 	>       > [Wed Jan 17 21:48:28 2007] [debug] mod_headers.c(663):
> 	>       > headers: ap_headers_output_filter() 
> 	>       > [Wed Jan 17 21:48:28 2007] [debug] mod_headers.c(663):
> 	>       > headers: ap_headers_output_filter()
> 	>       > [Wed Jan 17 21:48:28 2007] [debug] mod_headers.c(663):
> 	>       > headers: ap_headers_output_filter() 
> 	>       >
> 	>       > This looks like it is appending the headers, 
> but nothing is
> 	>       > happening. I am using FireFox 2.0.
> 	>       >
> 	>       > Any help would be much appreciated. 
> 	>       >
> 	>       > Cheers
> 	>       > Graeme
> 	>       >
> 	>       >
> 	>       >
> 	>
> 	>
> 	>       This message is for the named person's use only. It may
> 	> contain confidential, proprietary or legally privileged
> 	> information. No confidentiality or privilege is waived or
> 	> lost by any mistransmission. If you receive this message in
> 	> error, please notify the sender urgently and then immediately 
> 	> delete the message and any copies of it from your system.
> 	> Please also immediately destroy any hardcopies of the
> 	> message. You must not, directly or indirectly, use, disclose,
> 	> distribute, print, or copy any part of this message if you 
> 	> are not the intended recipient. The sender's company reserves
> 	> the right to monitor all e-mail communications through their
> 	> networks. Any views expressed in this message are those of
> 	> the individual sender, except where the message states 
> 	> otherwise and the sender is authorised to state them to be
> 	> the views of the sender's company.
> 	>
> 	>
> 	> 
> ---------------------------------------------------------------------
> 	>       The official User-To-User support forum of the Apache 
> 	> HTTP Server Project.
> 	>       See <URL:http://httpd.apache.org/userslist.html 
> > for more info.
> 	>       To unsubscribe, e-mail: 
> users-unsubscribe@httpd.apache.org 
> <mailto:users-unsubscribe@httpd.apache.org> 
> 	>          "   from the digest:
> 	> users-digest-unsubscribe@httpd.apache.org
> 	> <mailto: users-digest-unsubscribe@httpd.apache.org 
> <mailto:users-digest-unsubscribe@httpd.apache.org> >
> 	>       For additional commands, e-mail: 
> users-help@httpd.apache.org
> 	>
> 	>
> 	>
> 	>
> 	>
> 	
> 	
> ---------------------------------------------------------------------
> 	The official User-To-User support forum of the Apache 
> HTTP Server Project.
> 	See <URL:http://httpd.apache.org/userslist.html > for more info.
> 	To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> 	   "   from the digest: 
> users-digest-unsubscribe@httpd.apache.org 
> <mailto:users-digest-unsubscribe@httpd.apache.org> 
> 	For additional commands, e-mail: users-help@httpd.apache.org
> 	
> 	
> 
> 
> 

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> 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


Mime
View raw message