Re: [users@httpd] Proxy and mod_deflate (httpd 2.4.x)

2015-08-19 Thread Macks, Aaron
I removed mod_deflate from upper-level configs and inserted these 3 lines into 
the VHost
+   LogLevel Debug
+   LoadModule deflate_module modules/mod_deflate.so
+   DeflateCompressionLevel 9

nothing has changed in the output and there are no lines containing “deflate” 
in the error log
here are the lines that seem to be generated by a request for style.css

[Wed Aug 19 18:20:27.743063 2015] [proxy_ajp:debug] [pid 741] 
mod_proxy_ajp.c(710): [client 172.18.9.79:45129] AH00894: declining URL 
http://BUCKET.s3.amazonaws.com/resources/css/style.css
[Wed Aug 19 18:20:27.743071 2015] [proxy_fcgi:debug] [pid 741] 
mod_proxy_fcgi.c(861): [client 172.18.9.79:45129] AH01076: url: 
http://BUCKET.s3.amazonaws.com/resources/css/style.css proxyname: (null) 
proxyport: 0
[Wed Aug 19 18:20:27.743074 2015] [proxy_fcgi:debug] [pid 741] 
mod_proxy_fcgi.c(864): [client 172.18.9.79:45129] AH01077: declining URL 
http://BUCKET.s3.amazonaws.com/resources/css/style.css
[Wed Aug 19 18:20:27.743083 2015] [proxy:debug] [pid 741] proxy_util.c(2193): 
[client 172.18.9.79:45129] AH00944: connecting 
http://BUCKET.s3.amazonaws.com/resources/css/style.css to 
BUCKET.s3.amazonaws.com:80
[Wed Aug 19 18:20:27.814092 2015] [proxy:debug] [pid 741] proxy_util.c(2394): 
[client 172.18.9.79:45129] AH00947: connected /resources/css/style.css to 
BUCKET.s3.amazonaws.com:80

Any thoughts to further diagnose?
a

[aaronm@nmacneilxp2 common]$ curl http://HOSTNAME/resources/css/style.css  -H 
"Accept-Encoding: gzip,deflate" -I
HTTP/1.1 200 OK
Accept-Ranges: bytes
apache-location: /resources
Cache-Control: max-age=86400, public
Content-Encoding: UTF-8
Content-Length: 217493
Content-Type: text/css
Date: Wed, 19 Aug 2015 18:20:28 GMT
ETag: "926885eeaa851790caa9502782770c29"
Last-Modified: Thu, 13 Aug 2015 18:52:19 GMT
Server: AmazonS3
x-amz-id-2: 
+m+bM8y64TIaE0UraDCzGP/u4lwnqVNLyFATwHXuint7JYVf79FwLYkOQvRuTG0Ebgm3icxQHrs=
x-amz-request-id: E7A2D2D3405D72F9
Connection: keep-alive

On Aug 18, 2015, at 7:45 PM, Nick Kew 
mailto:n...@webthing.com>> wrote:

On Tue, 2015-08-18 at 15:31 +, Macks, Aaron wrote:

[chop]

What you have looks fine to me.  Though you might have some
stray directive in global scope that affects you.

What happens if you crank up LogLevel and wade through the messages?
mod_deflate will generate a lot of debug, and might tell you all.

--
Nick Kew



-
To unsubscribe, e-mail: 
users-unsubscr...@httpd.apache.org
For additional commands, e-mail: 
users-h...@httpd.apache.org


--
Aaron Macks
Systems Architect

Harvard Business Publishing
300 North Beacon St.|   Watertown, MA 02472
(617) 783-7461|   Fax: (617) 783-7467
www.harvardbusiness.org |   Cell:(978) 317-3614



Re: [users@httpd] Proxy and mod_deflate (httpd 2.4.x)

2015-08-18 Thread Nick Kew
On Tue, 2015-08-18 at 15:31 +, Macks, Aaron wrote:

> [chop]

What you have looks fine to me.  Though you might have some
stray directive in global scope that affects you.

What happens if you crank up LogLevel and wade through the messages?
mod_deflate will generate a lot of debug, and might tell you all.

-- 
Nick Kew



-
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



[users@httpd] Proxy and mod_deflate (httpd 2.4.x)

2015-08-18 Thread Macks, Aaron
I’ve seen a LOT of posts on the poric of “hot to get mod_deflate to compress 
proxied content, but none of the numerous suggestions seems to help.  My config 
is pretty simple, we want to compress everything in /resources, which all lives 
in an S3 bucket.  In the config above this are some local standard config 
lines, with the include mod_deflate, etc.


Header set Cache-Control "max-age=86400, public"
SetOutputFilter DEFLATE
Header set apache-location /resources
ProxyPass http://BUCKET.s3.amazonaws.com/resources
ProxyPassReverse http://BUCKET.s3.amazonaws.com/resources


However it doesn’t seem to be having the desired effect.  When I request a 
local file, all is well
[aaronm@Shamash common]$ curl http:/test.url/style.css  -H "Accept-Encoding: 
gzip,deflate" -I
HTTP/1.1 200 OK
Accept-Ranges: bytes
Content-Encoding: gzip
Content-Length: 33652
Content-Type: text/css
Date: Tue, 18 Aug 2015 15:22:28 GMT
ETag: "35195-51d977611af6e-gzip"
Last-Modified: Tue, 18 Aug 2015 15:20:41 GMT
Server: Apache/2.4.12 (Amazon)
Vary: Accept-Encoding
Connection: keep-alive

but when I pull a similar-content file through the proxy, it remains 
uncompressed
[aaronm@Shamash common]$ curl http://test.url/resources/css/style.css  -H 
"Accept-Encoding: gzip,deflate" -I
HTTP/1.1 200 OK
Accept-Ranges: bytes
apache-location: /resources
Cache-Control: max-age=86400, public
Content-Encoding: UTF-8
Content-Length: 217493
Content-Type: text/css
Date: Tue, 18 Aug 2015 15:22:42 GMT
ETag: "926885eeaa851790caa9502782770c29"
Last-Modified: Thu, 13 Aug 2015 18:52:19 GMT
Server: AmazonS3
x-amz-id-2: 
kyrC8PCgQqI5Iktj5pyyKIDD6UqWTKwoWTJfAq/rHO7wq0oI81XcFahP4IMpjQRQG0ALEPPf3PU=
x-amz-request-id: D2E9F2455D54BDF0
Connection: keep-alive

Is there a new reccomended fix for the 2.4 line?
thanks
Aaron
--
Aaron Macks
Systems Architect

Harvard Business Publishing
300 North Beacon St.|   Watertown, MA 02472
(617) 783-7461|   Fax: (617) 783-7467
www.harvardbusiness.org |   Cell:(978) 317-3614