EAP6 が JSF アプリケーションの x-powered-by を非表示にすることができない
Issue
- ナレッジ [0] の手順を行ったあとでも、JSP2 ベースのアプリケーションを実行していると、EAP6 の
"web"サブシステムに以下の設定を指定しても、レスポンスに"X-Powered-By"ヘッダーが表示されます。
<configuration>
<jsp-configuration x-powered-by="false"/>
</configuration>
- 上述の設定を行っても、JSF ベースのアプリケーションにリクエストが送られると、HTTPResponse が
"X-Powered-By"ヘッダーとともに JBoss によって送られます。
http://10.65.209.189:8080/EE6_BeanValidationDemo/welcome.jsf
GET /EE6_BeanValidationDemo/welcome.jsf HTTP/1.1
Host:10.65.209.189:8080
User-Agent:Mozilla/5.0 (X11; Linux x86_64; rv:10.0.11) Gecko/20121116 Firefox/10.0.11
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip, deflate
Connection: keep-alive
HTTP/1.1 200 OK
Server:Apache-Coyote/1.1
X-Powered-By:JSF/2.0
Set-Cookie:JSESSIONID=uDMZ5maS4UuqgydzNR1k6RIr; Path=/EE6_BeanValidationDemo
Content-Type: text/html;charset=UTF-8
Content-Length:515
Date:Fri, 17 May 2013 13:03:22 GMT
Environment
- JBoss Enterprise Application Platform (EAP)
- 6.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
