Re: mod expiry with proxy | Help required

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

 



I had a similar problem statement and setup. You can read through the discussion here: http://www.mentby.com/Group/httpd-users/conditionally-setting-http-response-header.html

In summary, cleanest way is to write your custom servlet filter that sets right response headers to content served by tomcat.

HTH.

-------------------------------------------------------------------
Anurag Kapur

Tech Lead, Digital Development
News International Ltd

http://www.linkedin.com/in/anuragkapur

http://www.google.com/profiles/anuragkapur
-------------------------------------------------------------------



On Thu, Sep 22, 2011 at 2:27 PM, Sandeep Kumar Kalpane <skalpane@xxxxxxxxxxx> wrote:

Hi,

 

We have configured Apache 2 as reverse proxy and Tomcat as servlet container. We have configured mod_expiry as mentioned below.

LoadModule expires_module modules/mod_expires.so

<IfModule mod_expires.c>

                ExpiresActive on

                ExpiresByType image/* M604800

                ExpiresByType text/css M604800

                ExpiresByType text/_javascript_ M604800

                ExpiresByType application/_javascript_ M604800

                ExpiresByType application/x-_javascript_ M604800

                ExpiresByType application/x-shockwave-flash M604800

</IfModule>

 

By doing this we were able set expiry headers for all content residing in Apache. However we were unable to configure expiry headers for content (like images) coming via proxy (Tomcat).

Appreciate your help.

 

Sandeep Kumar Kalpane

Senior Associate Platform L1 | SapientNitro

 

Salarpuria GR Tech Park

6th Floor, VAYU Block

#137 Whitefield Road

Bangalore 560066

Karnataka

India

 

Desk: +91 (80) 410 47000

Mobile: +91 9980035353

Fax: +91 (80) 410 47001

Email: skalpane@xxxxxxxxxxx

 

sapient.com

 

The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any (your) computer.

 

***Please consider the environment before printing this email.***

 



[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