wood burning stoves 2.0*
The moose likes Tomcat and the fly likes Apache-tomcat integration issue using mod_proxy connector Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Apache-tomcat integration issue using mod_proxy connector" Watch "Apache-tomcat integration issue using mod_proxy connector" New topic
Author

Apache-tomcat integration issue using mod_proxy connector

manoj r patil
Ranch Hand

Joined: Jun 06, 2002
Posts: 181
Hi All,

I am using mod_proxy connector to integrate apache 2.2.3 with tomcat 5.5.

I am using some secured pages in our application stored at tomcat. I could able to configure http and SSL so that my request at port 80 and 443 are getting redirected to tomcat properly.

But I am facing one issue: there are some pages which are hard coded under security-constraint in applications web.xml. So if someone requests for anyone of these pages, the request will automatically be served on SSL. This mechanism is not working in our case and the request gets treated as normal http request and browser says �Internet Explorer can not display this webpage�.

It seems that my requests are reaching to tomcat via apache but somehow it is unable to return the response back from tomcat if the entry is in web.xml (mapped using url-pattern).

Can anyone give some pointers/comments? Also let me know in case anybody faced similar problems and knows workaround


love your job and not your company;
...because you never know when your company will stop loving you!
manoj r patil
Ranch Hand

Joined: Jun 06, 2002
Posts: 181
I forgot to mention one important thing:
Tomcat and Apache are both on the same machine and only port 80 and 443 are open for access through SSL VPN.

If I tried to configure the same thing on local machine, it works but whenever it is SSL request, it automatically changes the port to 8443 and returns the correct response.

This problem is only with 443 port and 80 port is perfectly mapped to 8080 and I always see the request and response pages of http on port 80.
 
 
subject: Apache-tomcat integration issue using mod_proxy connector
 
Similar Threads
Reall Funny Error
Anyone using Tomcat 6 Comet with Apache mod_proxy?
SSL request on tomcat from apache
ssl
port redirection isse