I am using Apache 2.2.3 on RHEL5 and having problems to get mod_deflate work with mod_proxy. mod_deflate will compress files by mime-type just fine as long as those files are served statically from the local server. However, files served via dynamic php application (ie, MediaWiki) or via reverse-proxy site (port 8000 on localhost) don't get compressed at all. (They get served as uncompressed just fine).
Just in case, I checked with the ASF bug report list and found that a related bug was fixed in 2.2.2. This bug was very specifically related to this problem, and so just in case, I logged this as "Reopen". But maybe I have a stupid config error someone can see?
Hi all,
I'm a user of Debian 4.0. I installed apache 2.2 and add the functionality to support ~/public_html for each user. This is the permission of my public_html:
drwxr-xr-x 4 mj test 4096 2007-12-20 20:17 public_html
When I wanted to go through it and list the directory via my browser,... (6 Replies)
Double question here ... Running on Debian Etch and Apache 2.0
1) Using mod_proxy and/or mod_proxy_http in apache 2.0.
The basics of using mod_proxy are pretty simple so long as you're using a static config. I'm trying to figure out how to do it dynamically - that is, allow the entry of a... (4 Replies)
My company has a private network, including a Apache web server (Linux) and some WinXP machines. The web server had been configured to use mod_proxy to connect to window update site via another company proxy server. It works for few years.
Recently, some parties had setup a DNS server on the... (2 Replies)
Can anyone guide, what should be the entry in httpd.conf file to host a site in Redhat Ent Linux 5 without using nameserver?
Or process to set apache server in same dist of Linux.
Any link to understand apache well will be much appreciable. (3 Replies)
hi all,
I can't get my index.html to display on the web browser. Please point it out the reason.
this is what i had done so far:
1. I have registered a dns name pointing to my public ip (it is done automatic)
2. my server name is set same as the dns name
3. I have configured... (14 Replies)
Hi to all member's forum.
I have an httpd server with mod_proxy that forward any request to an another server.
the flow is: client --> requesto proxy https://miosito.it --> forward to server https://192.168.0.10:8443/
I'm reading this error in my httpd log in LogLevel debug (after some... (0 Replies)
Hi,
I have a proxy with SSL that forward any request to a backend platform.
In this moment I have a problem if I'm trying to execute an activex on the backend platform.
I'm reading that the mod_proxy blocks any activex request because it don't trust for the system.
How I can do? I'm reading... (0 Replies)
Hi,
I am running scientific linux (which is clone of red hat linux) on virtual machine that is virtual box.
I tried to start the apache but I got the following message.
starting httpd: httpd: arp_sockaddr_info_get() failed for scientific-linux
httpd: could not reliably determine the... (2 Replies)
Hi team,
I was like unable to solve this interview question, Any help from them experts here please..
"Your supervisor requires that all web requests for "http://dev.example.net" be passed to "http://newdev.example.net". She states that upon redirect, the URL in the web browser must remain... (1 Reply)
I have the following setup in my apache vhost:
ProxyPass /abc http://www.newest.com/
ProxyPassReverse /abc http://www.newest.com/
I want to setup a failover approach in which if after a particular timeout say 10secs the load shifts to some other website like Refer.com | The world. The timeout... (0 Replies)
Discussion started by: ankur328
0 Replies
LEARN ABOUT PHP
gzdeflate
GZDEFLATE(3) 1 GZDEFLATE(3)gzdeflate - Deflate a stringSYNOPSIS
string gzdeflate (string $data, [int $level = -1], [int $encoding = ZLIB_ENCODING_RAW])
DESCRIPTION
This function compresses the given string using the DEFLATE data format.
For details on the DEFLATE compression algorithm see the document "DEFLATE Compressed Data Format Specification version 1.3" (RFC 1951).
PARAMETERS
o $data
- The data to deflate.
o $level
- The level of compression. Can be given as 0 for no compression up to 9 for maximum compression. If not given, the default com-
pression level will be the default compression level of the zlib library.
o $encoding
- One of ZLIB_ENCODING_* constants.
RETURN VALUES
The deflated string or FALSE if an error occurred.
EXAMPLES
Example #1
gzdeflate(3) example
<?php
$compressed = gzdeflate('Compress me', 9);
echo $compressed;
?>
CHANGELOG
+--------+-----------------------------+
|Version | |
| | |
| | Description |
| | |
+--------+-----------------------------+
| 5.4.0 | |
| | |
| | Added $encoding parameter. |
| | |
+--------+-----------------------------+
SEE ALSO gzinflate(3), gzcompress(3), gzuncompress(3), gzencode(3).
PHP Documentation Group GZDEFLATE(3)