tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pid Ster <...@pidster.com>
Subject Re: How to Map domain to a context using Mod_jk
Date Tue, 06 Oct 2009 06:59:58 GMT
On 6 Oct 2009, at 05:56, gpike <gopike@gmail.com> 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: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message