Reputation: 1938
I know this seems like a very basic question.
I have a Java EE web application running on port 8080. So when I try to access it, I have to type domainname.com:8080/DomainName
. I want to access it by domainname.com
. For which I'm supposed to change the port number from 8080
to 80
. I made this change in my server.xml
in the conf
folder after going thru a few answers on SO :
<Connector port="80" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443" />
But I still get a 404 error. Please help. Is there something I'm not doing/doing wrong?
I'm using Tomcat7 on a Windows server.
If there's a similar question (which I may have not come across) please post it in the comments, thanks!
Upvotes: 0
Views: 849
Reputation: 1448
You can install apache and configure it to work with your tomcat via AJP port so apache will listen on port 80 and redirect request to your tomcat
here some reference: http://www.ntu.edu.sg/home/ehchua/programming/howto/ApachePlusTomcat_HowTo.html
Upvotes: 1