httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <christian.fol...@post.ch>
Subject AW: [users@httpd] Adding a Header to the httpd response
Date Mon, 21 Apr 2008 12:22:00 GMT
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@gmail.com] 
Gesendet: Montag, 21. April 2008 14:09
An: users@httpd.apache.org
Betreff: [users@httpd] 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@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


---------------------------------------------------------------------
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@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message