I managed to install tomcat and letsencrypt on my VPS. The closest I was able to make it work was https://www.example.com:8443/mywar I just wanted to make it work without needing the port and since then, everything is a mess.
www.example.com:8080 to show tomcat manager is not loading at all.
Trying to shutdown tomcat fails for: SEVERE: Could not contact [localhost:8005] (base port [8005] and offset [0]). Tomcat may not be running.
After starting tomcat, I can't really find it in the list of processes ps -ef | grep '[t]omcat'
And eventually, I have no idea how to make it work without the port.
here is my server.xml
<Server port="8005" shutdown="SHUTDOWN">
<Connector port="8443" protocol="org.apache.coyote.http11.Http11NioProtocol" maxThreads="150" SSLEnabled="true" connectionTimeout="1000000" scheme="HTTPS" sslProtocol="TLS" secure="true">
<SSLHostConfig>
<Certificate certificateFile="conf/cert.pem"
certificateKeyFile="conf/privkey.pem"
certificateChainFile="conf/chain.pem" />
</SSLHostConfig>
</Connector>
What did I do wrong?
After changing server.xml back to
<Connector port="8080" protocol="HTTP/1.1" maxThreads="150"
connectionTimeout="1000000">
manager and war work (war works with http and 8080 port only)
0 Answers