How configure the HTTP Headers in Weblogic Response

我的梦境 提交于 2019-12-12 12:18:35

问题


Using Weblogic 11g 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.


回答1:


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




回答2:


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.




回答3:


<url-rewriting-enabled></url-rewriting-enabled>
  1. Can occur zero or one time.
  2. 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.
  3. defaults to true

http://w3processing.com/Setups.php?freepageId=19



来源:https://stackoverflow.com/questions/4306444/how-configure-the-http-headers-in-weblogic-response

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!