One domain on Apache, another domain on Tomcat. How to?

Discussion in 'Apache' started by simplyi, Sep 16, 2010.

  1. #1
    Hello!

    Please forgive me for asking a question which has been probably asked before. I did search the forum but did not find an answer.

    I have two web sites. One built with PHP and one with JSP. I need to host them on one server the following way:

    1. domain1.com - is processed by Apache
    2. domain2.com is processed by Tomcat. But not partially ex. domain2.com/servlets or domain2.com/jsp. When user types in domain2.com I need Tomcat to pick up from /.

    What I have done:

    1. Installed Apache and Apache Tomcat.
    2. Tried configuring <VirtualHost> with ProxyPass but when redirect takes place the URL changes. :(
    3. Read about mod_jk but it seems like mod_jk is not what I need because mod_jk deligates /servlets or
    /something to Tomcat. I need to delegate to Tomcat the entire domain domain2.com

    How is it usually done?

    please advise me...

    Thank you.
     
    simplyi, Sep 16, 2010 IP