T086ѧϰ�� | վ��ѧԺ | �����ĵ� | ���� | Ъ���� | IP��ַ��ѯ | �������� | ���ջ��� | �����ֵ� | ���ù��� | ������Ϣ��ѯ

mod_gzip��Apache��HTTPѹ���Ż�

�� ������Blog���ߣ����� ����ʱ�䣺2008-11-11 | ���壺�� �� С��
[����]HTTPѹ�����ڴ��ı����ݿ�ѹ����ԭ��С��40��һ�£��Ӷ��ṩ60�����ϵ����ݴ�����Լ����ȻWEB����������Ϊѹ������CPUռ�õ���΢���������ǿ��Խ�Լ�������ڴ���������IO����������ѹ���������û������ٶ���������ҳ...

mod_gzip�İ�װ��

�޸�Makefile�е� apxs·����Ȼ��make make install

���ã�mod_gzip+mod_php
LoadModule gzip_module modules/mod_gzip.so

...
AddModule mod_gzip.c

...
<IfModule mod_gzip.c>
mod_gzip_on Yes
mod_gzip_minimum_file_size 1000
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����ʱ����Ŀ¼: mkdir /tmp/mod_gzip; chmod -R 777 mod_gzip
mod_gzip_temp_dir /tmp/mod_gzip
mod_gzip_dechunk Yes
mod_gzip_keep_workfiles No
</IfModule>

mod_gzip��mod_php�����ϣ���Ҫ��mod_gzip��mod_phpʹ��ͬһ����ʱĿ¼��php_session����Ŀ¼����ͨ�� php.ini���õ�session.save_path = /tmp/php_sess

mod_gzip��Resin���ϣ�
��resin���ʼ��б��ϲ鵽�ģ�Ҫ��mod_gzip��mod_caucho�����أ�����mod_gzip��������
...othr modules
AddModule mod_so.c
AddModule mod_caucho.c
#notice: mod_gzip must load after mod_caucho
AddModule mod_gzip.c
AddModule mod_expires.c
...

���ã�mod_gzip + resin
<IFModule mod_gzip.c>
mod_gzip_on Yes
mod_gzip_dechunk yes
mod_gzip_keep_workfiles No
mod_gzip_minimum_file_size 3000
mod_gzip_maximum_file_size 300000
mod_gzip_item_include file .html$
mod_gzip_item_include mime text/.*
mod_gzip_item_include mime httpd/unix-directory
mod_gzip_item_include handler caucho-request
</IFModule>

���ã�mod_gzip + mod_proxy �����������ٲ�ѹ�� IIS
ע��Ҫ����ȱʡ���ļ���������ӳ�䡣
AddType text/html .asp
AddType text/html .aspx

<IFModule mod_gzip.c>

AddType text/html .asp
AddType text/html .aspx
mod_gzip_on Yes
mod_gzip_dechunk yes
mod_gzip_keep_workfiles No
mod_gzip_minimum_file_size 3000
mod_gzip_maximum_file_size 300000
mod_gzip_item_include file .html$
mod_gzip_item_include file .asp$
mod_gzip_item_include file .aspx$
mod_gzip_item_include mime text/.*
mod_gzip_item_include mime httpd/unix-directory
mod_gzip_item_include handler proxy-server
</IFModule>

�ο����ϣ�

mod_gzip������
http://sourceforge.net/projects/mod-gzip/

mod_gzip��Ŀ��ҳ
http://www.schroepl.net/projekte/mod_gzip/

Apache2 �е�mod_deflate��ѹ���ʱ�mod_gzip�Ե�
http://httpd.apache.org/docs-2.0/mod/mod_deflate.html

ģ�黯��װApache
http://www.chedong.com/tech/apache_install.html

  • ת����ע����Դ��ITѧϰ�� ��ַ��http://www.t086.com/ �����������Ƽ�������
  • �ر������� ��վ�������ر�������ֹת�ص�ר�������������¿�������ת�أ���������ע��������ԭʼ���ߡ����°�Ȩ������ԭʼ�������С����ڱ���վת�����µĸ��˺���վ�����DZ�ʾ������л�⡣������վת�ص������а�Ȩ��������ϵ���ǣ����ǻᾡ�����Ը�����
  • ��
  • ��
  • ��
  • ��
  • ��
  • ��
  • ��
  • ��
  • ��
������ѯ Health Check Gulangyu
© 2017 T086ѧϰ�� - T086.com(ԭitlearner.com)
RunTime:8.62ms QueryTime:7