Tomcat port number and App Name
Hi guys !
I am using a VPS to host a Java web application.I installed Cpanel and then installed Tomcat, Apache, PHP (easyApache) successfully. I used tomcat manager to deploy my War file. I can access the website using the URL: /http://www.domainname.com:8080/appname
However, I wanted to access my web application using URL: /http://www.domainname.com
To do this, I used ssh command to access to the tomcat server.xml and changed the port number from 8080 to 80. After I restart Tomcat, when I try to access to the /http://www.domainname.com:80, the page is giving an error . When I tried to access using URL: /http://www.domainname.com:80/appname, the page is also giving me an error. (In this case I already put war file and unzipped it to the public_html folder)
Can anyone help me with that ?
I just want to link the web application to the domain so that anyone who types /http://www.domainname.com will directly access to the web application.
Help please !
Thanks in advance !
-
Hello, The following thread offers a solution to this issue: cPanel Tomcat JSP and Servlets Guide Checked under the "07. War files" section for information related to your particular question. Thank you. 0 -
Nice article... If I have the same situation, I will create the domain and simply add proxy for http://www.domainname.com to point 0
Please sign in to leave a comment.
Comments
2 comments