tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gpike <gop...@gmail.com>
Subject Re: How to Map domain to a context using Mod_jk
Date Tue, 06 Oct 2009 13:41:57 GMT

I want to be able to add new domains without restarting Tomcat. In tomcat
adding a VirtualHost would require a restart. I believe I can add a
VirtualHost in Apache without a restart. If I could redirect that to a
webapp context in Tomcat I think I can add those without a restart. Is that
the way to accomplish that?


Pid Ster wrote:
> 
> 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
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/How-to-Map-domain-to-a-context-using-Mod_jk-tp25762921p25768966.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


Mime
View raw message