• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Tomcat and Apache

P

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 ?
 
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
 
you are looking for redirecting? you can do this in the httpd.include file for the domain
 
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:
 
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 ...
 
Back
Top