In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-08 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
Editor to share with you tomcat 8.5.51 how to configure http and https access, I believe that most people do not know much, so share this article for your reference, I hope you can learn a lot after reading this article, let's go to know it!
Due to recent vulnerabilities and security issues, tomcat 8.5.51, the latest version of tomcat8, is hereby used.
In fact, tomcat configuration is very simple, because the first operation encountered some problems, hereby record
Operating system version: Red Hat Enterprise Linux Server release 7.6 (Maipo)
Memory: 16GB
JDK:java version "1.8.072"
Installation path: / root/apache-tomcat-8.5.51
It is easy for tomcat to release the war package. Throw the war package provided by the application under tomcat's webapps (/ root/apache-tomcat-8.5.51/webapps) and start tomcat.
After tomcat is decompressed, a server.xml configuration file is automatically generated in the config directory. All https and http and port configuration changes are configured in this file (it is recommended that if the previous version is not this, some parameter port and password certificate files can be copied to the new directory. It is not recommended to directly replace with the old version of server.xml, and the setting parameters are not the same for each version. This is what I suffer from.)
Parameter modification:
Http port 8010 https port: 443
Default parameters:
Modified to:
If we only use http, then we can modify this place 80.
If we use https, we will add one more point: configure the certificate (because the test generated by my own JDK tool is placed in the config directory)
Default parameters:
Modified to:
Save the server.xml file and start Tomcat.
# sh startup.sh
Using CATALINA_BASE: / root/apache-tomcat-8.5.51
Using CATALINA_HOME: / root/apache-tomcat-8.5.51
Using CATALINA_TMPDIR: / root/apache-tomcat-8.5.51/temp
Using JRE_HOME: / usr/local/jdk1.8.0_72
Using CLASSPATH: / root/apache-tomcat-8.5.51/bin/bootstrap.jar:/root/apache-tomcat-8.5.51/bin/tomcat-juli.jar
View the log:
If there is no error or alarm, the startup is normal. Take a look at the login test page:
Http test page:
Https test page:
In this way, you can hand it over, and the contents of the WAR package will be thrown to the developer if you report an error.
These are all the contents of the article "how to configure http and https access for tomcat 8.5.51". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.