tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pradeep <chaudhariprade...@gmail.com>
Subject Fwd: Problem with hosting mulitple websites on single tomcat 7
Date Mon, 24 Sep 2012 13:41:00 GMT
I have one domain hosted on cloud server. Let's say o.com

Now i want to add a.com and b.com to same cloud server, for that , i added
host entries inside server.xml as below,

<Host name="localhost"  appBase="webapps"



            unpackWARs="true" autoDeploy="true">



        <!-- SingleSignOn valve, share authentication between web applications
             Documentation at: /docs/config/valve.html -->



        <!--
        <Valve className="org.apache.catalina.authenticator.SingleSignOn" />



        -->

        <!-- Access log processes all example.



             Documentation at: /docs/config/valve.html
             Note: The pattern used is equivalent to using pattern="common" -->



        <Valve className="org.apache.catalina.valves.AccessLogValve"
directory="logs"



               prefix="localhost_access_log." suffix=".txt"



               pattern="%h %l %u %t &quot;%r&quot; %s %b" />



      </Host>



  <Host name="a.com" appBase="webapps_a"></Host>



 <Host name="b.com" appBase="webapps_b"></Host>

 (Note, Localhost was the orignal entry)

But , problem is , they both are pointing to o.com and not to their
respective domains/webapp directories


Thank you for providing such great tool.




-- 
Thanks & Regards,
Pradeep Chaudhari

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message