On 6 Oct 2009, at 05:56, gpike <[email protected]> wrote:

>
> I have Virtual Hosts defined in Apache for each domain. I want to
> map the
> domain to a context in Tomcat. For instance I would like mysite.com
> to map
> to /mysite_com in Tomcat. Would it be something like:
>
> <VirtualHost *:80>
>        ServerName mysite.com
>        RewriteRule ^/(.*)$ /mysite_com/$1 [PT]
>        JkMount /mysite_com/* worker1
> </VirtualHost>
>
> Is there a better way?

You mean is there a way to achieve the above with Tomcat?

Yes: define a default or ROOT context for each host. Tomcat docs site
has plenty of info on virtual hosts and setting up web application
contexts.

p

> Thanks Gordon
> --
> View this message in context: 
> http://www.nabble.com/How-to-Map-domain-to-a-context-using-Mod_jk-tp25762921p25762921.html
> Sent from the Tomcat - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to