I've been trying to do this in mod_jk2 with apache 2 and have had no
luck. Can two virtual hosts connect to the same context?

Can the following vhosts both map to "webapps/vif"?

http://(A)/vif-one-webapp
http://(B)/vif-two-webapp


--Rick

On Wed, 2003-03-26 at 14:32, Tiago Ferraz Machado wrote:
> Hello,
> 
> If I understood your question, I think if you change the name on the virtual host at 
> apache configuration, it should solve your problem:
> 
> <VirtualHost (A)>
>       ....
> </VirtualHost>
> 
> <VirtualHost (B)>
>       ....
> </VirtualHost
> 
> So you can type at the browser:
> 
> http://(A)/vif-one-webapp
> or 
> http://(B)/vif-two-webapp
> 
> (Of course, (A) and (B) are names that points to the IP's vif-one and vif-two)
> 
> []'s
> 
> Tiago.
> 
> -----Mensagem original-----
> De: klute [mailto:[EMAIL PROTECTED]
> Enviada em: quarta-feira, 26 de março de 2003 15:16
> Para: [EMAIL PROTECTED]
> Assunto: setting up alternate ways of accessing the same webapp
> 
> 
> hi All,
> 
> it's hard to explain my question but i'll do my best.
> please feel free to ask for clarifications.
> 
> i have a tomcat/apache 1.3.2.7/mod_jk setup. all of
> the servers are on the same host (say host A). there
> are 2 vifs (virtual ip's) set up on this host and so i
> have something like this:
> 
> <Engine name="myengine" defaultHost="A">
> 
> <Host name="vif-one">
> <Context docBase="/somedir/vif-one-webapp"
> path="/vif-one-webapp" >
> </Context>
> </Host>
> 
> <Host name="vif-two">
> <Context docBase="/somedir/vif-two-webapp"
> path="/vif-two-webapp" >
> </Context>
> </Host>
> 
> </Engine>
> 
> In apache, each of the vifs is a vhost. this config
> works well. 
> 
> i am able to call the first webapp 'vif-one-webapp' by
> visiting http://vif-one/vif-one-webapp. however, i'd
> like to be able to also reference this webapp by using
> the actual hostname (A) on the url instead of the
> virtual ip/host. any idea how i can do that? thanks a
> lot for your help!! 
> 
> james
> 
> __________________________________________________
> Do you Yahoo!?
> Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
> http://platinum.yahoo.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]
> 
> 




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to