Linux-Bulgaria.ORG
навигация

 

начало

пощенски списък

архив на групата

семинари ...

документи

как да ...

 

 

Предишно писмо Следващо писмо Предишно по тема Следващо по тема По Дата По тема (thread)

Re: lug-bg: mod_gzip Apache?


  • Subject: Re: lug-bg: mod_gzip Apache?
  • From: P.Kirkov@xxxxxxxxxxx (Peter Kirkov)
  • Date: Mon, 22 Jul 2002 11:28:57 +0300



Moje i da burkam...
Ot address - http://www.php.net/manual/en/ref.zlib.php
citat ot parvia dobaven comentar:
<citat>
An alternate way to handle gzip compression is to let the mod_gzip module
of apache handle it. This seems to contradict the tutorial on
phpbuilder.com saying that it won't compress php (or any dynamic) output,
but mod_gzip as of version 1.3.17.1a works well for me.

Here is an example of an httpd.conf setup:

<IfModule mod_gzip.c>
mod_gzip_on                 Yes
mod_gzip_dechunk            Yes
mod_gzip_minimum_file_size  300
mod_gzip_maximum_file_size  0
mod_gzip_maximum_inmem_size 100000
mod_gzip_keep_workfiles     No
mod_gzip_temp_dir           /tmp
mod_gzip_item_include       file \.html$
mod_gzip_item_include       file \.jsp$
mod_gzip_item_include       file \.php$
mod_gzip_item_include       file \.pl$
mod_gzip_item_include       mime ^text/.*
mod_gzip_item_include       mime ^application/x-httpd-php
mod_gzip_item_include       mime ^httpd/unix-directory$
mod_gzip_item_include       handler ^perl-script$
mod_gzip_item_include       handler ^server-status$
mod_gzip_item_include       handler ^server-info$
mod_gzip_item_exclude       mime ^image/.*
</IfModule>

This will automatically compress all output of your files with the .php
extention or the x-httpd-php mime type. Be sure to have dechunk set to
Yes.
</citat>

Drugia variant e da izpolzvash funkciite za output buffering v samia script.
Eto link i za tova:
http://www.phpbuilder.com/columns/argerich20010125.php3

 Pozdravi
Pesho

Hristo Nazarov wrote:

>Ne sam mnogo siguren....
>http://www.remotecommunications.com/apache/mod_gzip/
>Linux and Win32 pre-compiled binaries are already available as well the
>complete source code. All PHP dynamic output should be fully compressed and
>as well as most every other kind of CGI including, but not limited to,
>ColdFusion, Perl, Zope, WebLogic, IBM's WebSphere Server Output, EXE,
>compiled 'C', mod_perl, mod_php, etc.
>
>I weche kompresira *.php, obache ne moga da go podkaram s
>*.php?alabala=pesho
>Mislia che problema e tuka
>mod_gzip_item_include       file \.php$
>Probwah kak li ne ama ne shte
>Idei?
>Idei?
>

============================================================================
A mail-list of Linux Users Group - Bulgaria (bulgarian linuxers).
http://www.linux-bulgaria.org - Hosted by Internet Group Ltd. - Stara Zagora
To unsubscribe: http://www.linux-bulgaria.org/public/mail_list.html
============================================================================



 

наши приятели

 

линукс за българи
http://linux-bg.org

FSA-BG
http://fsa-bg.org

OpenFest
http://openfest.org

FreeBSD BG
http://bg-freebsd.org

KDE-BG
http://kde.fsa-bg.org/

Gnome-BG
http://gnome.cult.bg/

проект OpenFMI
http://openfmi.net

NetField Forum
http://netField.ludost.net/forum/

 

 

Linux-Bulgaria.ORG

Mailing list messages are © Copyright their authors.