Author
How to get Tomcat to listen on port 80
Nina Anderson
Ranch Hand
Joined: Jul 18, 2006
Posts: 148
posted Feb 09, 2009 16:09:18
0
I have an Apache + Tomcat web server. My web application is using JSP/Java for the most part, but there are some pages that are also PHP . My PHP pages are currently powered on 80
Right now our web application has tomcat set to: http://mydomain.com:8080
In addition, We are deploying our web application .war file in: /var/lib/tomcat5/webapps/MyWebApp
The problem is, when we need to access our web site, we have to go to:
http://mydomain.com:8080/MyWebApp to see work welcome page.
1) How can we change this, so when the user types: www.mydomain.com, it points straight to our .../MyWebApp/index.jsp file?
2) We currently access our PHP files via www.mydomain.com/upload.php. It is listening on port 80
Please...Help
Bauke Scholtz
Ranch Hand
Joined: Oct 08, 2006
Posts: 2458
posted Feb 09, 2009 16:12:05
0
Apache + Tomcat? Apache is a manfacturer name and Tomcat is a product name of Apache.
Do you mean Apache HTTP Server + Apache Tomcat Server?
If so, take a look for the mod_jk to route JSP/Servlet requests through Apache HTTP Server to Apache Tomcat Server: http://tomcat.apache.org/connectors-doc
Code depot of a Java EE / JSF developer | JSF / Eclipse / Tomcat kickoff tutorial | DAO kickoff tutorial | I ♥ Unicode
Javid Jamae
Author
Ranch Hand
Joined: May 14, 2008
Posts: 198
If you are just running Tomcat, you can change the port number in the Connector configuration in the server.xml file.
Author: JBoss in Action , javidjamae.com , @javidjamae on Twitter
Bauke Scholtz
Ranch Hand
Joined: Oct 08, 2006
Posts: 2458
posted Feb 09, 2009 19:02:01
0
He mentioned that he is already using PHP on port 80, so I assume that he already runs Apache HTTP Server on that for PHP purposes and that he want to add JSP/Servlet access to that. In this case, use the mod_jk.
subject: How to get Tomcat to listen on port 80