我正在运行CentOS 5.6和cPanel。
我已经重建了我的apache已经启用了泄气。下面是我的EasyApache构建日志:
./configure --enable-deflate --enable-expires --enable-headers --enable-info --enable-logio --enable-proxy --enable-rewrite --enable-ssl --enable-suexec --enable-unique-id --prefix=/usr/local/apache --with-included-apr --with-pcre=/opt/pcre --with-ssl=/usr --with-suexec-caller=nobody --with-suexec-docroot=/ --with-suexec-gidmin=100 --with-suexec-logfile=/usr/local/apache/logs/suexec\_log --with-suexec-uidmin=100 --with-suexec-userdir=public\_html
...
...checking是否启用mod_deflate..。是(违约)
在我的http.conf中没有LoadModule mod_deflate,在my Modules/ Directory中也没有mod_deflate.so。
我做错了什么?
好的,我运行了这个命令,它返回如下:
/usr/local/apache/bin/httpd -M加载模块: core_module (静态) authn_file_module (静态) authn_default_module (静态) authz_host_module (静态) authz_groupfile_module (静态) authz_user_module (静态) authz_default_module (静态) auth_basic_module (静态) include_module (静态) filter_module (静态) deflate_module (静态)log_config_module (静态) logio_module (静态) env_module (静态) expires_module (静态) headers_module (静态) unique_id_module (静态)unique_id_module(静态) setenvif_module (静态) version_module (静态) proxy_module (静态) proxy_connect_module (静态) proxy_ftp_module (静态) proxy_http_module (静态) proxy_scgi_module (静态) proxy_ajp_module (静态) proxy_balancer_module (静态) ssl_module (静态) mpm_prefork_module (静态) http_module (静态) mime_module (静态) status_module (静态)status_module(静态) autoindex_module (静态) asis_module (静态) info_module (静态) cgi_module (静态) negotiation_module (静态) dir_module (静态) actions_module (静态)( userdir_module (静态) alias_module (静态) rewrite_module (静态) so_module (静态) bwlimited_module (共享) security2_module (共享)语法确定
这意味着泄气正在加速。
我在没有运气的情况下把这个添加到我的httpd.conf中。
AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css text/javascript application/javascript application/xml需要添加什么才能让迪弗莱特开始工作??
发布于 2011-08-17 02:34:17
你是如何确定压缩不起作用的?
不是100%确定这个模块,但我认为您需要在您的conf中加载模块,通过编译它,您只是在编译~支持模块。
试试这个:
# explicitly load the module
LoadModule deflate_module modules/mod_deflate.so
#
# Deflate output configuration
AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css text/javascript application/x-javascript
# take care of silly browsers
BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4\.0[678] no-gzip
BrowserMatch \bMSIE !no-gzip !gzip-only-text/html-sean
发布于 2011-08-17 02:06:12
我认为您希望将--enable-so添加到您的configure选项中。
https://serverfault.com/questions/301876
复制相似问题