AW: Adding a Header to the httpd response

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

 



Hey Salih,

You should use mod_headers.
http://httpd.apache.org/docs/2.2/mod/mod_headers.html 

Cheers,

Christian

-----Ursprüngliche Nachricht-----
Von: Mohammed Salih [mailto:linusali@xxxxxxxxx] 
Gesendet: Montag, 21. April 2008 14:09
An: users@xxxxxxxxxxxxxxxx
Betreff:  Adding a Header to the httpd response


Hi All,

How can I add a header, if it is not set by the application.

I want to add Cache-Control header to all http responses, if it is not set by the back-end application like PHP or application server like tomcat.

I tried a combination of SetEnvIf and Header, but SetEnvIf is only fused for requests.

Can any one please guide me in the right path? (Sorrmy English is poor)

Thanks in advance.
Salih

---------------------------------------------------------------------
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


---------------------------------------------------------------------
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