Alex Ulianov
Alex Ulianov

Reputation: 33

How to host tomcat on default port (80)

my tomcat web-application has been hosted on port 8080, it means i need to go for example: http://domain:8080/ to access my app, but its bad. How to make that i need go only http://domain/ ?

Upvotes: 0

Views: 2002

Answers (1)

Leigh Caldwell
Leigh Caldwell

Reputation: 11106

The simple answer is to edit server.xml (under your Tomcat's conf/ directory) find the <Connector> entry with protocol="HTTP/1.1" and change port="8080" to port="80".

However, you will need administrator or root access to do this, and there needs to be nothing else on the server that's already using port 80 (or at least nothing using the same IP number). You may need to add more information to your question to say what operating system you are using, and you may find this question is better asked on serverfault.com than here.

Upvotes: 1

Related Questions