2017-05-30 23 views
0

私はWebsphere Liberty Core 17.0.0.1上で動作するアプリケーションを持っています。 4xxのステータスコードで応答するたびに、Webコンテナは応答にヘッダ$WSEPを追加します。例えば:私は私のserver.xmlにWebコンテナのプロパティsuppressErrorPageODRHeaderを追加しようとしました

$WSEP → 
Cache-Control →no-cache, no-store, max-age=0, must-revalidate 
Content-Language →en-US 
Content-Type →text/html;charset=UTF-8 
Date →Tue, 30 May 2017 13:21:21 GMT 
Expires →0 
Pragma →no-cache 
Transfer-Encoding →chunked 

は、しかし、それは動作しません、このヘッダーを抑制します。

<webContainer suppressErrorPageODRHeader="true"/> 

このヘッダーを表示しないようにWebコンテナを設定するにはどうすればよいですか?

答えて

2

完全なWebコンテナ名 "com.ibm.ws.webcontainer.suppresserrorpageodrheader"を使用すると、$ WSEPヘッダーが抑制されます。

元/古いWASプロパティのいくつかは、Libertyでショートネームがありません。

1
<webContainer com.ibm.ws.webcontainer.suppresserrorpageodrheader="true"/> 
関連する問題