I am trying to config mod_deflate on Apache 2.0.45.
The Procedure on the below:
step1:
Code:
/usr/local/apache2/bin/apxs -i -c /home/gma/httpd-2.0.45/modules/filters/mod_deflate.c
step2:
Comment "CustomLog logs/access_log common" and instead by "CustomLog logs/deflate_log deflate" in httpd.conf
step3:
Insert the following code in httpd.conf:
Code:
LoadModule deflate_module modules/mod_deflate.so
DeflateFilterNote ratio
LogFormat '"%v %h %l %u %t "%r" %>s %b "%{Referer}i" "%{User-Agent}i"" (%{ratio}n)' deflate
LogFormat '"%v %h %l %u %t "%r" %>s %b "%{ Referer }i" "%{ User-Agent }i"" (%{ ratio }n)' deflate
<Location />
SetOutputFilter DEFLATE
BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4.0[678] no-gzip
BrowserMatch MSIE !no-gzip !gzip-only-text/html
SetEnvIfNoCase Request_URI .(?:gif|jpe?g|png)$ no-gzip dont-vary
</Location>
when i restart apache and return the error from server on the below:
Code:
Syntax error on line 1084 of /usr/local/apache2/conf/httpd.conf:
Cannot load /usr/local/apache2/modules/mod_deflate.so into server: /usr/local/apa
che2/modules/mod_deflate.so: Undefined symbol "deflate"
Can anyone help me to solve this problem?