In my Apache Tomcat installation, my server.xml file in my conf directory indicates that my port is 8005. When I enter http://localhost:8005/ I get a "could not connect to localhost:8005" error. This is just driving me crazy. What am I doing wrong?
feedback
|
migrated from stackoverflow.com Jul 28 '10 at 19:45
This question came from our site for professional and enthusiast programmers.
|
8005 is not http port for tomcat, default http port is 8080. you should be able to find it in server.xml | |||
|
feedback
|
|
In server.xml you see the following:
This port is not the port you use when opening your tomcat project in your browser. It's (probably) the internal port tomcat uses to shutdown. The connector specifies the port which is used to connect to the outside world. You can change this port to 80 if you don't use another webserver (like apache or nginx) and don't want to use :8080 in your web address (like http://yourdomain.test:8080)
Edit: hmm, I now see this is an old question, so probably my answer is obsolete, but anyway - maybe it helps someone! | |||
|
feedback
|
