How configure the HTTP Headers in Weblogic Response
Using Weblogic 1开发者_StackOverflow中文版1g and want to be able to add headers to all files served up by weblogic. There is no seperate web server sitting in front of weblogic. Cannot find a way to configure weblogic to add header to the HTTP response. In IIS you can easily do this by choosing the server and clicking to add headers. Looking for the equivalent way to do this in weblogic.
I dont think this is configurable. You would have to write a Filter
to manipulate the headers as you need.
As a hint, you could try something along the lines of this package http://flavio.tordini.org/http-headers-filter. I have not tried this myself
If you have the option of putting Apache server in front of your Weblogic server, then you can configure Apache to do that using this. As an additional benefit, you can configure the Apache server to serve static content.
PS: Not just Apache but Lighttpd and Nginx also allow you to do that.
<url-rewriting-enabled></url-rewriting-enabled>
- Can occur zero or one time.
- When this flag is set to false, WebLogic will add the following header with the response
Cache-control: no-cache=set-cookie
so that the proxy caches do not cache the cookies. - defaults to true
http://w3processing.com/Setups.php?freepageId=19
精彩评论