Is security-constraint configuration for Tomcat mandatory?

前端 未结 2 1058
粉色の甜心
粉色の甜心 2020-12-01 06:31

In order to do an SSL Configuration testing under Tomcat, is this all mandatory?

This below line is taken from a website:

In order to do this

2条回答
  •  伪装坚强ぢ
    2020-12-01 07:01

    No, it's not necessary. It means that your web application only available through HTTPS (and not available through HTTP).

    If you omit the CONFIDENTIAL tag (or the whole ) your application will be available through both HTTP and HTTPS. If your web.xml contains CONFIDENTIAL Tomcat automatically redirects the requests to the SSL port if you try to use HTTP.

    Please note that the default Tomcat configuration does not enable the SSL connector, you have to enable it manually. Check the SSL Configuration HOW-TO for the details.

提交回复
热议问题