I use ispconfig and for each domain, I must have a directory where apache's domains directories resides, regardless if this domain is served from apache or in my case from tomcat. So for this domain I have a corresponding directory on both apache and tomcat. I also have an index.jsp on both tomcat domain root directory and apache's domain root directory.
When I access http://www.dimitros-apartments.gr/index.jsp I get an uncompiled jsp page ( I see the source code ) on my browser.
A strange think is that this uncompiled page, is not from tomcat's directory but from apache's domain directory.
any help is appreciated.
Thanks in advance,
posted 10 months ago
this was resolved with the help of André Warnier from tomcat mailing list.
For anyone having the same problem the solutin is to change
The reason for this is that "dimitros-apartments.gr" is the domain name. A URL in the Tomcat world consists of a domain part (domain name and optionally port number), a context part - which in this case identifieds which webapp within the target Tomcat server to send the request to, a servlet part, which tells Tomcat which servlet or JSP to send the request to, and a resource ID which can be used as an unnamed argument to the servlet or JSP.
In your case, dimitros-apartments.gr domain name was defined to Apache as a VirtualHost, so that part is taken care of by Apache. Then the JkMount defines what the remaining parts of the URL are that will route to Tomcat. You can actually get very creative and make Apache-relative contexts that send requests to different backends. For example, ajp13_worker1 might receive all requests targeting dimitros-apartments.gr/tenants/ and send them to Tomcat Server1 and dimitros-apartments.gr/landlords/ might be JkMount'ed to be sent to Tomcat Server2. Or even to a non-Java backend server.
When it comes to destroying a civilization, gas chambers cannot hold a candle to echo chambers.