Thanks for that excellent link. I somehow overlooked it while going through the documentation of Tomcat. As of now I am planning to go with another approach: I will be opening 20 different ports on a single instance and access the resources under the same appbase, which will contain the dynamic servlets, mapped to different REST URL's. Something like,
http://localhost:8081/give/me/data/for/this http://localhost:8082/give/me/data/for/this http://localhost:8083/give/me/data/for/this http://localhost:8084/give/me/data/for/this http://localhost:8085/give/me/data/for/this all of this will be mapped to the servlet under same directory (let's say webapps/data.jsp) Do you see any drawbacks in this approach? (I am doing this because if I go the virtual hosts way, others have to explicitly modify the etc/hosts file to tell their computers that the virtual hosts have to be found from with in the local machine, since I will be sending this configured package around for testing their applications) Thanks On Thu, Jun 19, 2008 at 10:13 AM, Caldarale, Charles R < [EMAIL PROTECTED]> wrote: > > From: Vinay Chilakamarri [mailto:[EMAIL PROTECTED] > > Subject: Re: Questions related to configuring a REST API on Apache > > > > Is there a way to setup virtual hosts on Tomcat alone with > > out having to connect to Apache Httpd for that? > > Yes - configure multiple <Host> elements in conf/server.xml. It's in the > doc: > http://tomcat.apache.org/tomcat-6.0-doc/virtual-hosting-howto.html > > - Chuck > > > THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY > MATERIAL and is thus for use only by the intended recipient. If you received > this in error, please contact the sender and delete the e-mail and its > attachments from all computers. > > --------------------------------------------------------------------- > To start a new topic, e-mail: users@tomcat.apache.org > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >