Question

i am running my java web application using tomcat server and i am accessing it with the url "//localhost:8080/Authority/" . But i want to access it using "//localhost/Authority/" . Pls help me out...

Était-ce utile?

La solution

When the http port is not specifier, it is assumed to be port 80. So your web container must listen on port 80. But on a Unix-like OS, only root can listen to a port number lower that 1024.

Anyway; to change the port number, you need to edit tomcat's server.xml file and change the port number of the http <Connector>

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top