mod_deflate working on all vhosts except port 80

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi.  I've gotten mod_deflate to deflate files as intended for all
vhosts except for the primary site on port 80.  I've even duplicated
the files under one vhost to 80, and they still wont deflate.  I've
included a good amount of detail about configuration, headers, and
results below.  If you have any ideas, please let me know.

- David

Here are the details.

Current Setup: Apache/2.2.10 (Win32) PHP/5.2.6 mod_jk/1.2.27

=== BEGIN Deflate block at the very end of httpd.conf ===

<IfModule deflate_module>
	SetOutputFilter DEFLATE
	DeflateFilterNote Input instream
	DeflateFilterNote Output outstream
	DeflateFilterNote Ratio ratio
	LogFormat '[%>s](%{ratio}n%%) %h %t "%r" %{outstream}n/%{instream}n' deflate
	CustomLog logs/deflate.log deflate
	Header append Vary User-Agent env=!dont-vary
	AddOutputFilterByType DEFLATE text/plain
	AddOutputFilterByType DEFLATE text/xml
	AddOutputFilterByType DEFLATE application/xhtml+xml
	AddOutputFilterByType DEFLATE text/css
	AddOutputFilterByType DEFLATE application/xml
	AddOutputFilterByType DEFLATE image/svg+xml
	AddOutputFilterByType DEFLATE application/rss+xml
	AddOutputFilterByType DEFLATE application/atom_xml
	AddOutputFilterByType DEFLATE application/javascript
	AddOutputFilterByType DEFLATE application/x-javascript
	AddOutputFilterByType DEFLATE application/x-httpd-php
	AddOutputFilterByType DEFLATE application/x-httpd-fastphp
	AddOutputFilterByType DEFLATE application/x-httpd-eruby
	AddOutputFilterByType DEFLATE text/html
	SetEnvIfNoCase Request_URI \.(?:gif|jpe?g|png)$ no-gzip dont-vary
	SetEnvIfNoCase Request_URI \.pdf$ no-gzip dont-vary
	SetEnvIfNoCase Request_URI \.zip$ no-gzip dont-vary
	SetEnvIfNoCase Request_URI \.swf$ no-gzip dont-vary
	BrowserMatch \bMSIE\s7 !no-gzip !gzip-only-text/html
	BrowserMatch ^Mozilla/4 gzip-only-text/html
	BrowserMatch ^Mozilla/4\.0[678] no-gzip
</IfModule>

=== END Deflate block at the very end of httpd.conf ===

=== BEGIN Two sample blocks from vhosts.conf ===

NameVirtualHost *:80
NameVirtualHost *:8060
<VirtualHost *:80>
    ServerAdmin me@xxxxxxxx
    DocumentRoot "E:\Apache Group\Apache2.2\htdocs\ic_dev"
    JKMount /*.jsp worker1
</VirtualHost>

<VirtualHost *:8060>
    ServerAdmin me@xxxxxxxx
    DocumentRoot "E:\Apache Group\Apache2.2\htdocs\documentation"
</VirtualHost>

=== END two sample blocks from vhosts.conf ===

=== BEGIN Deflate Log from a request to port 8060 ===

[200](13%) 10.230.137.95 [04/Dec/2008:13:13:09 -0500] "GET / HTTP/1.1"
6024/45003
[200](23%) 10.230.137.95 [04/Dec/2008:13:13:09 -0500] "GET
/javascript/jul08/global.js HTTP/1.1" 1424/6031
[200](26%) 10.230.137.95 [04/Dec/2008:13:13:09 -0500] "GET
/javascript/jul08/api.js?V=n HTTP/1.1" 1605/5986
[200](21%) 10.230.137.95 [04/Dec/2008:13:13:09 -0500] "GET
/stylesheets/jul08/global.css?V=n HTTP/1.1" 3334/15658
[200](69%) 10.230.137.95 [04/Dec/2008:13:13:09 -0500] "GET
/stylesheets/jul08/print.css?V=n HTTP/1.1" 102/147
[200](19%) 10.230.137.95 [04/Dec/2008:13:13:09 -0500] "GET
/stylesheets/jul08/legacy.css?V=n HTTP/1.1" 5209/26771
[200](17%) 10.230.137.95 [04/Dec/2008:13:13:09 -0500] "GET
/stylesheets/jul08/master.css?V=n HTTP/1.1" 4171/24516
[200](26%) 10.230.137.95 [04/Dec/2008:13:13:09 -0500] "GET
/stylesheets/jul08/hover.css?V=n HTTP/1.1" 1216/4629
[200](33%) 10.230.137.95 [04/Dec/2008:13:13:09 -0500] "GET
/javascript/jul08/sortable.js HTTP/1.1" 3244/9830
[200](18%) 10.230.137.95 [04/Dec/2008:13:13:09 -0500] "GET
/stylesheets/jul08/flexigrid/flexigrid.css HTTP/1.1" 2634/14021
[200](49%) 10.230.137.95 [04/Dec/2008:13:13:09 -0500] "GET
/javascript/jul08/jquery/jquery.js HTTP/1.1" 14799/29825
[200](24%) 10.230.137.95 [04/Dec/2008:13:13:10 -0500] "GET
/javascript/jul08/jquery/flexigrid.js HTTP/1.1" 9695/39149

=== END Deflate Log from a request to port 8060 ===

=== BEGIN Deflate Log from a request to port 80 ===

[200](-%) 10.230.137.95 [04/Dec/2008:13:14:58 -0500] "GET / HTTP/1.1" -/-
[200](-%) 10.230.137.95 [04/Dec/2008:13:14:58 -0500] "GET
/index_files/index.css HTTP/1.1" -/-
[200](-%) 10.230.137.95 [04/Dec/2008:13:14:58 -0500] "GET
/index_files/api.js HTTP/1.1" -/-
[200](-%) 10.230.137.95 [04/Dec/2008:13:14:58 -0500] "GET
/index_files/icn_arrow_blue_nav.gif HTTP/1.1" -/-
[200](-%) 10.230.137.95 [04/Dec/2008:13:14:58 -0500] "GET
/index_files/1.gif HTTP/1.1" -/-
[200](-%) 10.230.137.95 [04/Dec/2008:13:14:58 -0500] "GET
/index_files/color_date_key.gif HTTP/1.1" -/-

=== END Deflate Log from a request to port 80 ===

=== BEGIN Headers for a file (HTML) loaded from port 80 ===

GET / HTTP/1.1
Host: {machine.domain}
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US;
rv:1.8.1.18) Gecko/20081029 Firefox/2.0.0.18
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Cookie: defaultHome=global_home|1227113075081;
__utma=269858409.1919455299.1219178860.1219178860.1219178860.1;
__utmz=269858409.1219178860.1.1.utmccn=(direct)|utmcsr=(direct)|utmcmd=(none);
WT_FPC=id=153.2.246.30-1296959216.29945229:lv=1228165072826:ss=1228165072826
Cache-Control: max-age=0

HTTP/1.x 200 OK
Date: Thu, 04 Dec 2008 18:15:50 GMT
Server: Apache/2.2.10 (Win32) PHP/5.2.6 mod_jk/1.2.27
Accept-Ranges: bytes
Vary: Accept-Encoding,User-Agent
Keep-Alive: timeout=5, max=100
Connection: Keep-Alive
Transfer-Encoding: chunked
Content-Type: text/html

=== END Headers for a file (HTML) loaded from port 80 ===

=== BEGIN Headers for a file (HTML) loaded from port 8060 ===

GET / HTTP/1.1
Host:  {machine.domain}:8060
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US;
rv:1.8.1.18) Gecko/20081029 Firefox/2.0.0.18
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Cookie: defaultHome=global_home|1227113075081;
__utma=269858409.1919455299.1219178860.1219178860.1219178860.1;
__utmz=269858409.1219178860.1.1.utmccn=(direct)|utmcsr=(direct)|utmcmd=(none);
WT_FPC=id=153.2.246.30-1296959216.29945229:lv=1228165072826:ss=1228165072826

HTTP/1.x 200 OK
Date: Thu, 04 Dec 2008 18:18:24 GMT
Server: Apache/2.2.10 (Win32) PHP/5.2.6 mod_jk/1.2.27
Accept-Ranges: bytes
Vary: Accept-Encoding,User-Agent
Content-Encoding: gzip
Content-Length: 6042
Keep-Alive: timeout=5, max=99
Connection: Keep-Alive
Content-Type: text/html

=== END Headers for a file (HTML) loaded from port 8060 ===

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux