jboss修正X-Powerby

1362 ワード


ファイル:
  JBOSS4
/deploy/jboss-web.deployer/conf/web.xml

  JBOSS5: 
\default\deployers\jbossweb.deployer\web.xml 

 
<filter>        
        <filter-name>CommonHeadersFilter</filter-name>
        <filter-class>org.jboss.web.tomcat.filters.ReplyHeaderFilter</filter-class>
        <init-param>           
               <param-name>X-Powered-By</param-name>           
               <param-value>Servlet 2.4; JBoss-4.2.3.GA (build: SVNTag=JBoss_4_2_3_GA date=200807181417)/JBossWeb-2.0</param-value>   
         </init-param>
</filter>

 
/deploy/jboss-web.deployer/server.xml

 
<Connector port="8080" address="0.0.0.0"  maxThreads="250"
  maxHttpHeaderSize="8192" server="xxxx"  //  banner        
  emptySessionPath="true"  protocol="HTTP/1.1" 
  enableLookups="false"
  redirectPort="8443"
  acceptCount="100" 
  connectionTimeout="20000"
 disableUploadTimeout="true" />