1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

Integrating external Tomcat 6 with plesk

Discussion in 'Plesk 9.x for Linux Issues, Fixes, How-To' started by RobinO, Jul 9, 2009.

  1. RobinO

    RobinO Guest

    0
     
    Hi

    Is there anyway to integrate an external version (not installed through plesk) of Tomcat so that requests to port 80 are redirected to port 8080 (i.e. if I went to www.example.com I would see the same content as www.example.com:8080)?

    I have tried using mod_jk with our apache files but this doesn't seem to work when plesk is installed.

    We also can't locate proxy_ajp.conf (I think this is because we are now using Ubuntu 8.04 server instead of Centos) and hence we are unable to use <location> tags to redirect as well.

    Our version of plesk panel is 9.2.1

    We have tried editing the http.conf file but it is either ignored or causes an 'Invalid server configuration(500)' error.

    (Also our setup of the mod_jk is working correctly with our dev server which runs ubuntu 8.10 so I don't think it's a incorrect mod_jk setup that is causing the issue)

    Thanks

    Robin
     
  2. RobinO

    RobinO Guest

    0
     
    Solved

    Hi Guys

    Looks like we figured it out anyway.

    Thanks
     
  3. ronv

    ronv Basic Pleskian

    22
     
    Joined:
    Jul 17, 2009
    Messages:
    29
    Likes Received:
    0
    Hi Robin,

    Could you please explain how you achieved that? I'm having trouble with Plesk's Tomcat behaviour regarding unpacking of .war files and am considering switching to an external Tomcat. A short summary of necessary steps would be much appreciated!

    Cheers,

    Ron
     
  4. RobinO

    RobinO Guest

    0
     
    Hi Ron

    The following walkthrough will only really work on ubuntu but may be useful as a reference to other setups.

    We installed tomcat first (not through the repository) into a directory of our choice. The following link should tell you how to do this:

    http://www.howtogeek.com/howto/linux/installing-tomcat-6-on-ubuntu/


    We setup a standard mod_jk connection between apache and tomcat. The link below has details on how to do this:

    http://wbruschi.blogspot.com/2009/01/install-tomcat-6-on-ubuntu-intrepid.html

    (read the section on installing tomcat behind apache, if you want to install tomcat from the repository it also shows you how to do this as well.)

    You will need to make sure that the virtual host is setup correctly for the domain name in plesk (this was done by our hosting provider).

    Apart from that all you need to do is add the last piece of the mod_jk code into required .conf file. One thing to note is that link above mentions adding the last part of the mod_jk code to the /etc/apache2/sites-available/default file. We found that adding it to the http.conf file instead worked. You can find the post that mentions this here (step 5):

    http://www.smithproject.org/doc_preinstall.cfm#step5

    If you do have further issues it most likely based on the final mod_jk code being added to the wrong file for your setup.

    Simply try to add it to the local conf file (i.e. the one for you virtual domain).


    Hope this helps

    Robin
     
  5. ronv

    ronv Basic Pleskian

    22
     
    Joined:
    Jul 17, 2009
    Messages:
    29
    Likes Received:
    0
    Thank you very much!

    Ron
     
  6. SarvaS

    SarvaS New Pleskian

    6
    20%
    Joined:
    May 2, 2014
    Messages:
    2
    Likes Received:
    0
    Hi,

    Can you please suggest how to handle the same case for windows 2008 server.
    "how to integrate an external version (not installed through plesk) of Tomcat so that requests to port 80 are redirected to port 8080".

    Sarva
     
Loading...