ever00t
Verified User
- Joined
- Jul 10, 2007
- Messages
- 19
Debian 4.0 (Etch) Apache 1.3.37, MySQL 4.1.10, PHP Version 4.4.7.
I install mod-gzip by doing 'apt-get install libapache-mod-gzip'.
then
I edit /etc/httpd/conf/httpd.conf , add the following lines:
LoadModule gzip_module /usr/lib/apache/1.3/mod_gzip.so
<IfModule mod_gzip.c>
#AddModule mod_gzip.c #cuz Apache says this file is already loaded.
mod_gzip_on Yes
mod_gzip_minimum_file_size 500
mod_gzip_maximum_file_size 300000
mod_gzip_item_include file \.htm$
mod_gzip_item_include file \.html$
mod_gzip_item_include file \.php$
mod_gzip_item_include file \.php3$
mod_gzip_item_include mime text/.*
mod_gzip_item_include mime ^httpd/unix-directory
mod_gzip_item_include mime ^text/html$
mod_gzip_item_include mime ^text/plain$
mod_gzip_temp_dir /tmp
mod_gzip_dechunk Yes
mod_gzip_keep_workfiles No
mod_gzip_can_negotiate Yes
mod_gzip_update_static No
mod_gzip_maximum_inmem_size 60000
mod_gzip_min_http 1000
LogFormat "%h %l %u %t \"%V %r\" %<s %b mod_gzip: %{mod_gzip_result}n In:%{mod_gzip_input_size}n -< Out:%{mod_gzip_output_size}n = %{mod_gzip_compression_ratio}n pct." common_with_mod_gzip_info2
CustomLog logs/mod_gzip.log common_with_mod_gzip_info2
mod_gzip_add_header_count Yes
</IfModule>
Strange is. if mod-gzip is loaded, access to the default unconfigured page that is www.myserver.net/index.html gives error says Page cannot be displayed, server is not found or DNS error. Additionally, all images in a forum which is built on this site will not be displayed properly at all <looks like they are not found at all but they are actually there>.
If i turn mod-gzip off,all things come back normally. access to www.myserver.net/index.html will display the default welcome page generated by DA says blah blah and upload files to public_html ,something like that.
Any Idea ?
I personally assume this problem has something to do with DirectAdmin,because i have installed mod-gzip many times at that time without having DA installed and all things went fine.
Thank you all for checking it out for me.
I install mod-gzip by doing 'apt-get install libapache-mod-gzip'.
then
I edit /etc/httpd/conf/httpd.conf , add the following lines:
LoadModule gzip_module /usr/lib/apache/1.3/mod_gzip.so
<IfModule mod_gzip.c>
#AddModule mod_gzip.c #cuz Apache says this file is already loaded.
mod_gzip_on Yes
mod_gzip_minimum_file_size 500
mod_gzip_maximum_file_size 300000
mod_gzip_item_include file \.htm$
mod_gzip_item_include file \.html$
mod_gzip_item_include file \.php$
mod_gzip_item_include file \.php3$
mod_gzip_item_include mime text/.*
mod_gzip_item_include mime ^httpd/unix-directory
mod_gzip_item_include mime ^text/html$
mod_gzip_item_include mime ^text/plain$
mod_gzip_temp_dir /tmp
mod_gzip_dechunk Yes
mod_gzip_keep_workfiles No
mod_gzip_can_negotiate Yes
mod_gzip_update_static No
mod_gzip_maximum_inmem_size 60000
mod_gzip_min_http 1000
LogFormat "%h %l %u %t \"%V %r\" %<s %b mod_gzip: %{mod_gzip_result}n In:%{mod_gzip_input_size}n -< Out:%{mod_gzip_output_size}n = %{mod_gzip_compression_ratio}n pct." common_with_mod_gzip_info2
CustomLog logs/mod_gzip.log common_with_mod_gzip_info2
mod_gzip_add_header_count Yes
</IfModule>
Strange is. if mod-gzip is loaded, access to the default unconfigured page that is www.myserver.net/index.html gives error says Page cannot be displayed, server is not found or DNS error. Additionally, all images in a forum which is built on this site will not be displayed properly at all <looks like they are not found at all but they are actually there>.
If i turn mod-gzip off,all things come back normally. access to www.myserver.net/index.html will display the default welcome page generated by DA says blah blah and upload files to public_html ,something like that.
Any Idea ?
I personally assume this problem has something to do with DirectAdmin,because i have installed mod-gzip many times at that time without having DA installed and all things went fine.
Thank you all for checking it out for me.