Proxy and mod_deflate (httpd 2.4.x)

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

 



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.

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

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


[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