Hi! Can someone tell me how to enable http compression in apache? I did the "Installing A LAMP System With Fedora Core 6", but i don't know how to enable http compression. Thanks.
Didn't do yet, just googled for you: the one sounds generally interesting: http://www.innerjoin.org/apache-compression/howto.html This should show you a way how just to install mod_gzip (if you decided for that instead of the other way round as above, which i would do cause i do not have any static webpages, so i won't be able to do offlinecompression...):http://lists.over.net/pipermail/mod_gzip/2002-February/005911.html
Thanks for helping Ben, I am a little lost with Apache Http compression. What is the difference between mod_deflate (http://httpd.apache.org/docs/2.0/mod/mod_deflate.html) and mod_gzip? And the big question is how do i implement it and what module? I am completely new in Apache and Linux, i came from a little different world (IIS), and trying cheaper solutions! I have both dynamic and static web pages. Thanks
mod_gzip is for Apache 1.3, while mod_deflate is for Apache 2. Have a look here: http://www.howtoforge.com/apache2_mod_deflate http://www.howtoforge.com/linux_apache_mod_gzip
Thats what i added in my /ect/httpd/conf/httpd.conf Section 1: Global Environment: AddOutputFilterByType DEFLATE text/plain AddOutputFilterByType DEFLATE text/xml AddOutputFilterByType DEFLATE application/xhtml+xml AddOutputFilterByType DEFLATE text/css AddOutputFilterByType DEFLATE application/xml AddOutputFilterByType DEFLATE image/svg+xml AddOutputFilterByType DEFLATE application/rss+xml AddOutputFilterByType DEFLATE application/atom_xml AddOutputFilterByType DEFLATE application/x-javascript AddOutputFilterByType DEFLATE application/x-httpd-php AddOutputFilterByType DEFLATE application/x-httpd-fastphp AddOutputFilterByType DEFLATE application/x-httpd-eruby AddOutputFilterByType DEFLATE text/html Is that ok? Since i did not ad any directive for images or other already compressed file (like zip and tar.gz), will apache compress such files? Thanks again!