Configure Tomcat port 80 with Plesk

Discussion in 'Server Operation' started by jitendra, Jan 24, 2008.

  1. jitendra

    jitendra New Member

    I need to configure tomcat on Linux dedicate server only for Java project through Plesk . Following services is running on it.

    1.Apache on port 80
    2.Tomcat on port 8080/9080
    3.Mysql on port 3306

    Now problem is this, i need to run only java project on this server from port 80 .this time user type my site name then default page call index.html or .php file from root directory of Apache. so how it can be possible to run java project from this server default port 80 after deploye .war(java project) file to this server. Because user who wants to access my site does not know its port number for Tomcat as here is 9080 and also deploy file name. Pls look below for detail about problem

    Suppose my sit name is and hosted on Linux dedicate server with Plesk install on it with Apache, Tomcat and Mysql.

    Now for running my java project on it, i need to enter in browser. So how can i run this project only from URL and it will call default file .jsp from java_project_name directory. I do not want to enter port number and java_project_name in url and my client who wants to access this project did not know about port number as well as project name . He knows only about URL as and when he browses it then it should call default page index.jsp from toncat. And in Browser window, it should only show So to implement this what should we need to do? Pls help.

  2. topdog

    topdog Active Member

    you can use apache's mod_proxy and mod_proxy_ajp to achieve that.
  3. topdog

    topdog Active Member

    You can setup something like this
    <VirtualHost *:80>
    ProxyPass / ajp://
    ProxyPassReverse / ajp://
    I have done it in a virtual host such that you can still run other servers on apache.

Share This Page