开发者社区 问答 正文

Tomcat 配置成https的8443端口可以吗?

ECS的安全规则,为什么不能定义HTTPS的端口号? 不用443,用8443不可以吗?

展开
收起
angeldark 2019-01-06 15:46:57 1046 分享 版权
1 条回答
写回答
取消 提交回答
  • 强制https访问   在tomcat\conf\web.xml中的</welcome-file-list>后面加上这样一段:    <login-config>      <!-- Authorization setting for SSL -->      <auth-method>CLIENT-CERT</auth-method>      <realm-name>Client Cert Users-only Area</realm-name>  </login-config>  <security-constraint>      <!-- Authorization setting for SSL -->      <web-resource-collection >          <web-resource-name >SSL</web-resource-name>          <url-pattern>/*</url-pattern>      </web-resource-collection>      <user-data-constraint>          <transport-guarantee>CONFIDENTIAL</transport-guarantee>      </user-data-constraint>  </security-constraint>
    

    答案来源网络,供参考,希望对您有帮助

    2019-10-09 11:56:10
    赞同 展开评论