2
我正在使用JBoss 4.2。我希望通过HTTPS访问特定的网址格式。 我使用了自我认证的密钥库文件,问题是:一旦HTTPS网址被访问, 网站上的所有其他网址都会通过HTTPS,那么问题是什么?Jboss中的HTTPS配置
已更新:我发现了这个问题。我使用相对路径来引用资源,所以一旦URL更改为HTTPS,所有后续链接都将以HTTPS启动,那么我必须在HTTPS网页中使用绝对路径吗?
我的配置是这样的: 在web.xml:
<security-constraint>
<web-resource-collection>
<web-resource-name>artists.jsp</web-resource-name>
<url-pattern>/artists.*</url-pattern>
<http-method>GET</http-method>
<http-method>POST</http-method>
</web-resource-collection>
<user-data-constraint>
<transport-guarantee>CONFIDENTIAL</transport-guarantee>
</user-data-constraint>
</security-constraint>
server.xml中:
<Connector port="8443"
scheme="https"
secure="true"
clientAuth="false"
keystoreFile="${jboss.server.home.dir}/conf/server.keystore"
keystorePass="changeit"
sslProtocol = "TLS" />