Ssl 从HTTP重定向到HTTPS连接后,jboss 5.1不工作
如果重定向到HTTPS url(端口8443),jboss服务器将不工作,以下是WAR包web.xml配置:Ssl 从HTTP重定向到HTTPS连接后,jboss 5.1不工作,ssl,https,jboss5.x,Ssl,Https,Jboss5.x,如果重定向到HTTPS url(端口8443),jboss服务器将不工作,以下是WAR包web.xml配置: <security-constraint> <web-resource-collection> <web-resource-name>HtmlAdaptor</web-resource-name> <description>Security for all users</description>
<security-constraint>
<web-resource-collection>
<web-resource-name>HtmlAdaptor</web-resource-name>
<description>Security for all users</description>
<url-pattern>/all/*</url-pattern>
<http-method>GET</http-method>
<http-method>POST</http-method>
</web-resource-collection>
<auth-constraint>
<role-name>role01</role-name>
</auth-constraint>
<user-data-constraint>
<transport-guarantee>CONFIDENTIAL</transport-guarantee>
</user-data-constraint>
</security-constraint>
HtmlAdaptor
所有用户的安全
/全部/*
得到
邮递
角色01
保密的
如果我改变
<transport-guarantee>CONFIDENTIAL</transport-guarantee>
机密
到
无
服务器可以在8081端口接受HTTP请求
SSL连接应注意哪些配置?
还有其他配置吗 jboss4.x和jboss5.x之间的server.xml配置不同: jboss4.x上以前的server.xml:
<Connector port="8443" address="{jboss.bind.address}"
maxThreads="100" strategy="ms" maxHttpHeaderSize="8192"
<Connector port="8443" address="{jboss.bind.address}"
maxThreads="100" strategy="ms" maxHttpHeaderSize="8192"
<Connector protocol="HTTP/1.1" SSLEnabled="true"
port="8443" address="{jboss.bind.address}"
maxThreads="100" strategy="ms" maxHttpHeaderSize="8192"