Welcome to MobyThreads.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in
All support for the MobyThreads Threaded phpBB MOD can now be found on welsolutions at this forum

Red Hat 9: Apache compresses JPEG files

 
   Web Hosting and Web Master Forums (Home) -> Apache RSS
Next:  Tomcat Admin password forgotten  
Author Message
alvaro_quitar_1

External


Since: Oct 31, 2003
Posts: 86



(Msg. 1) Posted: Fri May 07, 2004 9:25 pm
Post subject: Red Hat 9: Apache compresses JPEG files
Archived from groups: alt>apache>configuration (more info?)

I'm using Red Hat 9. Since I upgraded to lastest Apache security release
(2.0.40-21.11) I've found that all files (including JPEG) are sent
compressed with gzip to client.

I configured my server some time ago to compress plain text files using
deflate module and leave the rest uncompressed. The upgrade hasn't changed
my config files, which are exactly the same and remain unchanged.

I'd appreciate some comments on whether someone else has found the same
problem and also on how to diagnose what's going on. I don't want to
compress JPEGs and the like, it's a waste of time and resources!


Thank you in advance,

--
-- Álvaro G. Vicario - Burgos, Spain
--

 >> Stay informed about: Red Hat 9: Apache compresses JPEG files 
Back to top
Login to vote
alvaro_quitar_1

External


Since: Oct 31, 2003
Posts: 86



(Msg. 2) Posted: Fri May 07, 2004 9:55 pm
Post subject: Re: Red Hat 9: Apache compresses JPEG files [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

*** Alvaro G Vicario wrote/escribió (Fri, 7 May 2004 18:25:35 +0200):
 > I'm using Red Hat 9. Since I upgraded to lastest Apache security release
 > (2.0.40-21.11) I've found that all files (including JPEG) are sent
 > compressed with gzip to client.

Some more info. Actually, mod_deflate is no longer working. I created a
text file renamed to *.jpg to test it:



GET /BORRAME.jpg HTTP/1.1
Host: <a style='text-decoration: underline;' href="http://www.tecoweb.com" target="_blank">www.tecoweb.com</a>
Accept-Encoding: deflate

HTTP/1.1 200 OK
Date: Fri, 07 May 2004 16:54:13 GMT
Server: Apache/2.0.40 (Red Hat Linux)
Last-Modified: Fri, 07 May 2004 16:53:47 GMT
ETag: "1674df-10-80c9bcc0"
Accept-Ranges: bytes
Content-Length: 16
Vary: Accept-Encoding
Connection: close
Content-Type: image/jpeg
Content-Language: es

This is a test.
Connection closed by foreign host.



GET /BORRAME.jpg HTTP/1.1
Host: <a style='text-decoration: underline;' href="http://www.tecoweb.com" target="_blank">www.tecoweb.com</a>
Accept-Encoding: gzip,deflate

HTTP/1.1 200 OK
Date: Fri, 07 May 2004 16:53:53 GMT
Server: Apache/2.0.40 (Red Hat Linux)
Last-Modified: Fri, 07 May 2004 16:53:47 GMT
ETag: "1674df-10-80c9bcc0"
Accept-Ranges: bytes
Vary: Accept-Encoding
Content-Encoding: gzip
Content-Length: 34
Connection: close
Content-Type: image/jpeg
Content-Language: es


ÉÈ,V¢D
Ôâ=.èË'Connection closed by foreign host.



--
--
-- Álvaro G. Vicario - Burgos, Spain
--<!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: Red Hat 9: Apache compresses JPEG files 
Back to top
Login to vote
hans1

External


Since: Mar 29, 2004
Posts: 672



(Msg. 3) Posted: Sat May 08, 2004 12:48 am
Post subject: Re: Red Hat 9: Apache compresses JPEG files [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"Alvaro G Vicario" <alvaro_QUITAR_REMOVE.TakeThisOut@telecomputeronline.com> schreef in
bericht news:1ws9dc4nkqqbb.3azjw4q0i8gr$.dlg@40tude.net...
 > I'm using Red Hat 9. Since I upgraded to lastest Apache security release
 > (2.0.40-21.11) I've found that all files (including JPEG) are sent
 > compressed with gzip to client.
 > I configured my server some time ago to compress plain text files using
 > deflate module and leave the rest uncompressed. The upgrade hasn't changed
 > my config files, which are exactly the same and remain unchanged.
 > I'd appreciate some comments on whether someone else has found the same
 > problem and also on how to diagnose what's going on. I don't want to
 > compress JPEGs and the like, it's a waste of time and resources!
That is a theory I'ld agree with, but there is more to it: (older) browsers
may go banana on things like compressed images ...
Documentation on mod_gzip gives a wealth of details
<a style='text-decoration: underline;' href="http://www.schroepl.net/projekte/mod_gzip/config.htm." target="_blank">http://www.schroepl.net/projekte/mod_gzip/config.htm.</a>

Readin <a style='text-decoration: underline;' href="http://httpd.apache.org/docs-2.0/mod/mod_deflate.html#recommended" target="_blank">http://httpd.apache.org/docs-2.0/mod/mod_deflate.html#recommended</a>
assumes 'AddOutputFilterByType DEFLATE text/html text/plain text/xml' is the
easyist way to start .

Add 'DeflateFilterNote ratio' to your config too and ' (%{ratio}n) ' to
your logformat to keep yourself informed on what _is_ compressed and what
isn't .

HansH<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Red Hat 9: Apache compresses JPEG files 
Back to top
Login to vote
kalvaronospamt

External


Since: Feb 25, 2004
Posts: 58



(Msg. 4) Posted: Sat May 15, 2004 3:45 am
Post subject: Re: Red Hat 9: Apache compresses JPEG files [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

*** Alvaro G Vicario escribió/wrote (Fri, 7 May 2004 18:25:35 +0200):
 > I'm using Red Hat 9. Since I upgraded to lastest Apache security release
 > (2.0.40-21.11) I've found that all files (including JPEG) are sent
 > compressed with gzip to client.

In case it helps someone in the future... My mistake was in config file.
Where it said...

  SetOutputFilter DEFLATE
  AddOutputFilterByType DEFLATE text/plain text/html text/css

....it had to say...

  AddOutputFilterByType DEFLATE text/plain text/html text/css

The usage of SetOutputFilter directive forced to compress everying except
what explicitly excluded.

Why had this incorrect configuration been working fine for months, just
until upgraded Apache? Well, maybe the solved the bug in this release Smile


--
--
-+ Álvaro G. Vicario - Burgos, Spain - ICQ 46788716
+- <a style='text-decoration: underline;' href="http://www.demogracia.com" target="_blank">http://www.demogracia.com</a> (la web de humor para mayores de 100 años)
++ «Sonríe, que te vamos a hacer una foto para la esquela»
--<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Red Hat 9: Apache compresses JPEG files 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Where does apache put log files? - Im trying to locate my websites log files so i can set up some free website stats software I have ftp access to the server and found a folder called: /httpd-2.0.46 Im guessing this is the folder for the apache2 installation?. My website virtual info..

Apache not serving .wml files - Quite a simple one this, I just cannot figure whats going wrong? I have both apache 1.3 and 2.0 running happily on my win XP machine, I am routing my IP address to apache using no-ip.com. With this simple set up I can type http:ant.servebeer.com and up...

Spoofing log files in Apache? - Running 1.3.29 and getting some really odd requests in the log file. Is there any way that apache could be fed bogus ip addresses, page requests, etc??? Thanks! -- =-=-= Doug

apache serving incomplete files - Hello, I've done some searching on this subject but have come up with nothing so I'm hoping someone here can help. I'm currently running apache 2.0.46 on my home machine and I have a couple of vitual hosts set-up. My problem is that apache appears to...

Apache Sending Zero Length Files - Do you know what sort of situation could cause Apache to, when it recieves requests: 1) Write correct headers to the client, including content length. 2) Write correct information including content-length to the access logs, as if all went well. 3) And..
   Web Hosting and Web Master Forums (Home) -> Apache All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]