Home > Back-end >  Port 80 in tomcat automatically forwarded
Port 80 in tomcat automatically forwarded

Time:11-03

So in tomcat Settings
 
The redirectPort="443"/& gt;

The maxThreads="150" SSLEnabled="true" & gt;


I'm willing to when users visit HTTP automatically forwarded to the HTTPS, but the reality is now can access the HTTP and HTTPS,
If I had just put the part 80 commented out, it can not be in the form of HTTP access, what do I do if I want to realize automatic jump?

CodePudding user response:

Add a filter, access if it is HTTP, compared with 301 jump onto the HTTPS address
  • Related