You are not logged in.

#1 2005-02-22 05:09:44

cactus
Taco Eater
From: t͈̫̹ͨa͖͕͎̱͈ͨ͆ć̥̖̝o̫̫̼s͈̭̱̞͍̃!̰
Registered: 2004-05-25
Posts: 4,622
Website

Apache output compression.

anyone have mod_delate compiled/working with arch apache?
Is there something else I should use?

If I remember correctly, mod_gz used to be for apache1.3..
I don't know what to use for apache2.


"Be conservative in what you send; be liberal in what you accept." -- Postel's Law
"tacos" -- Cactus' Law
"t̥͍͎̪̪͗a̴̻̩͈͚ͨc̠o̩̙͈ͫͅs͙͎̙͊ ͔͇̫̜t͎̳̀a̜̞̗ͩc̗͍͚o̲̯̿s̖̣̤̙͌ ̖̜̈ț̰̫͓ạ̪͖̳c̲͎͕̰̯̃̈o͉ͅs̪ͪ ̜̻̖̜͕" -- -̖͚̫̙̓-̺̠͇ͤ̃ ̜̪̜ͯZ͔̗̭̞ͪA̝͈̙͖̩L͉̠̺͓G̙̞̦͖O̳̗͍

Offline

#2 2005-02-22 11:22:22

lanrat
Member
From: Poland
Registered: 2003-10-28
Posts: 1,274

Re: Apache output compression.

You're probably right
http://www.apache.org/~rbowen/presentat … ide35.html

But look at this: http://freshmeat.net/projects/mod_gzip/ (in the comments below there are links to mod_gzip port for apache2 - I've never tried it though).
Let me know what you will find.
I'll soon be more interested in this too :-)

I've just found another useful link:
http://www.webperformance.org/compression/

Offline

#3 2005-02-22 12:28:56

jp_fielding
Member
Registered: 2004-08-28
Posts: 85

Re: Apache output compression.

i believe mod_deflate might be what your looking for.

i had a fedora 2 install laying around with apache 2 and just stole it's mod_deflate.so.

so far as i can tell it works fine.

Offline

#4 2005-04-21 03:22:14

Shofs
Member
From: Central Illinois
Registered: 2004-12-15
Posts: 184

Re: Apache output compression.

I used this all the time with Gentoo. But I can't seem to get it working or even find it now with Arch. It doesn't seem to come with apache and isn't in pacmanable.

Is pacmanable a word? It is now. big_smile

Offline

#5 2005-04-21 11:15:02

jp_fielding
Member
Registered: 2004-08-28
Posts: 85

Re: Apache output compression.

yeah, you can either rebuild in in abs and update the pkgbuild to compile apache with the --enable-deflate option, or go grap the source and rebuild it. 

i woudl _love_ to see it as a default module though ;-)

Offline

#6 2005-04-22 04:08:44

Shofs
Member
From: Central Illinois
Registered: 2004-12-15
Posts: 184

Re: Apache output compression.

jp_fielding wrote:

yeah, you can either rebuild in in abs and update the pkgbuild to compile apache with the --enable-deflate option, or go grap the source and rebuild it. 

i woudl _love_ to see it as a default module though ;-)


I second making it a default module. I don't want to rebuild apache every time it is updated. I also don't want to miss seeing pacman update it and not know howe my system is working.

I don't have a flyspray account. Do you? If so, you should file a bug under both our behalves.


EDIT:

I looked at the PKGBUILD and this is the the configure line

  ./configure --prefix=/usr --enable-layout=RedHat --datadir=/home/httpd 
    --enable-modules=all --enable-mods-shared=all --enable-ssl --enable-so 
    --enable-proxy --enable-proxy-connect --enable-proxy-ftp 
    --enable-proxy-http --enable-suexec

I would think that --enable-modules=all would mean -- enable mod_deflate . . . am I wrong?

EDIT 2: (Sorry)
I found this at this page

Compile and Enable mod_deflate

mod_deflate is included in the Apache 2.0.x source package. Its compilation it is a simple matter of adding it to the configure command, like this:

./configure --enable-modules=all --enable-mods-shared=all 
--enable-deflate

When the server is made and installed, the GZIP-encoding of documents is easily enabled. We simply add three lines to the httpd.conf file:

SetOutputFilter DEFLATE
SetEnvIfNoCase Request_URI .(?:gif|jpe?g|png)$ 
no-gzip dont-vary
SetEnvIfNoCase Request_URI .pdf$ no-gzip dont-vary

Offline

#7 2010-04-28 07:42:39

perdar
Member
Registered: 2010-04-28
Posts: 1

Re: Apache output compression.

Hey Guys,

If you search /etc/httpd/conf/httpd.conf you will find that mod_deflate.so is actually being loaded as standard.
It's module name is deflate_module...

anyways, to get it to work all you need to do is make sure that the following lines are in your config and restart apache...

The LoadModule lines will be there as standard!!
So don't put them in twice if they are already there....

LoadModule deflate_module module/mod_deflate.so
LoadModule headers_module module/mod_headers.so

<IfModule deflate_module>
     SetOutputFilter DEFLATE
     SetEnvIfNoCase Request_URI \.(?:gif|jpe?g|png|rar|zip|pdf)$ no-gzip dont-v
     <IfModule headers_module>
          Header append Vary User-Agent
     </IfModule>
</IfModule>

LOL Just realised the original post is from ages ago.... lol

Last edited by perdar (2010-04-28 07:45:10)

Offline

Board footer

Powered by FluxBB