Feb 26
Debian's Apache1 package doesn't quite do what I need. I have been building my own and overwriting the files from the Debian package, but that can get annoying. So I hacked my changes into the Debian source package and built real .debs. I figure they might be useful to others.
The main changes are to get rid of -lpthread (needed by mod_perl) and -lexpat and to add mod_deflate. To enable mod_deflate make sure your /etc/apache/modules.conf file has:
AddModule mod_deflate.c
And in your httpd.conf add:
<IfModule mod_deflate.c>
    DeflateEnable           on
    DeflateMinLength        1024
    DeflateCompLevel        8
    DeflateProxied          on
    DeflateDisableRange     "MSIE 4."
    DeflateVary             on
    DeflateTypes            text/css
    DeflateTypes            text/plain
    DeflateTypes            text/rtf
    DeflateTypes            text/xml
    DeflateTypes            text/javascript
    DeflateTypes            image/vnd.dwg
    DeflateTypes            image/vnd.dxf
    DeflateTypes            application/msword
    DeflateTypes            application/vnd.hp-HPGL
    DeflateTypes            application/vnd.ms-access
    DeflateTypes            application/vnd.ms-excel
    DeflateTypes            application/vnd.ms-powerpoint
    DeflateTypes            application/vnd.ms-project
    DeflateTypes            application/vnd.visio
    DeflateTypes            application/x-javascript
</IfModule>

Posted by Rasmus


Last modified on 2006-02-26 23:52

View as PDF: This entry | This month | Full blog

0 Trackbacks

  1. No Trackbacks

0 Comments

Display comments as(Linear | Threaded)
  1. No comments

Add Comment


E-Mail addresses will not be displayed and will only be used for E-Mail notifications.

To prevent automated Bots from commentspamming, please enter the string you see in the image below in the appropriate input box. Your comment will only be submitted if the strings match. Please ensure that your browser supports and accepts cookies, or your comment cannot be verified correctly.
CAPTCHA

Enclosing asterisks marks text as bold (*word*), underscore are made via _word_.