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

Tomcat and Apache

Discussion in 'Plesk for Linux - 8.x and Older' started by pedropadron, May 9, 2006.

  1. pedropadron

    pedropadron Guest

    Hello there,

    I want to know if it's possible for me to integrate Tomcat and Apache, so that all my .jsp files can be placed in the same directory as all the others, for example /var/www/vhosts/domain.com/httpdocs

    I was trying to use mod_jk.so to redirect all .jsp requests to Tomcat, but for all domains the requests are sent to the same place -> /var/tomcat4/webapps/ROOT/

    Is it possible to do something like that with Plesk ?
  2. jspilon

    jspilon Guest

  3. pedropadron

    pedropadron Guest

    Sorry, forgot to mention:

    I have Plesk Plus here, so the Tomcat support is already enabled.
    But what it does is to manage WAR packaged applications, that will be accessed as something like http://www.domain.com:9080/myapplication

    What I want to do is to put my .jsp files in the httpdocs directory, along with other files such as HTML and PHP.

    I know that there's mod_jk for Apache, a module that would "redirect" the requests for jsp files to Tomcat, but I don't know how to make it work for several domains, each one with it's own directory.

    I'm running Fedora Core 3

    Sorry for my bad english. :p
  4. jspilon

    jspilon Guest

    you are looking for redirecting? you can do this in the httpd.include file for the domain
  5. pedropadron

    pedropadron Guest

    hey there jspilon

    hmmmm now that you made that question I see that what I said didn't make sense

    I already tried to make changes in httpd.include, and it worked, but now I understand that it's not what I want to do

    if i redirect the requests, the jsp files will have to be in another place, right ? for example in the webapps directory

    well, what I need is to put jsp, php, html files in httpdocs

    yeah, I guess I'm quite confused now :confused:
  6. jspilon

    jspilon Guest

    I would suggest you take a look at tomcat itself.

    once you understand how tomcat works and handle files, you can then see whats different with plesk if anything.

    And if you uploaded files already i would search the system for the files.. .

    # find / -iname thefilenameaspattern

    then i would take a look at tomcat's conf files to see if there is anything about this and change it ...