Hi Konstantin , Here are the details , 1. Tomcat Version - Server version: Apache Tomcat/7.0.21 2. It is Standalone 3. I am just using default setting , it is running on 8080 , Only thing ,i have added following entries to forward all 80 requests to 8080 Entries are, iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-ports 8080
iptables -t nat -A OUTPUT -p tcp --dport 80 -j REDIRECT --to-ports 8080 4. Yes I restarted tomcat for every change i was testing 5. How did i tested, I just visited *a.com* and *b.com* and checked whether they go to their respective website, instead they directed to o.com ( default app which in webapps) Here is the directory structure for above three domains o.com webapps a.com webapps_a b.com webapps_b They all are at same level Sorry, for top posting ,i new to mailing list, i will try to avoid in future :) , appreciate your help. Regards, Pradeep On Mon, Sep 24, 2012 at 7:37 PM, Konstantin Kolinko <knst.koli...@gmail.com>wrote: > 2012/9/24 Pradeep <chaudhariprade...@gmail.com>: > > 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 --> > > There is no need to cite comments, such as one above. > > > > > <Valve className="org.apache.catalina.valves.AccessLogValve" > > directory="logs" > > prefix="localhost_access_log." suffix=".txt" > > pattern="%h %l %u %t "%r" %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 > > > > 1. What x.y.z version of Tomcat it is? > 2. Is your Apache Tomcat running standalone, or behind Apache HTTPD or > similar? > 3. How are your <Connector>s configured? > 4. Did you restart Tomcat after making your changes? > 5. You say it does not work. - How did you test it? > > Best regards, > Konstantin Kolinko > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > > -- Thanks & Regards, Pradeep Chaudhari