David Gagnon wrote:
> Hi all,
> 
>  
> 
>   I reading the doc for hours now and searching the web without success.
> Maybe my understanding of virtual hosting is wrong. if any of you can just
> correct my understanding and point me in the right direction I will greatly
> appreciate it.
> 
>  
> 
> I have an application  i.e.:toto.war that I deploy using ANT script.  When
> deployed the application sit at the following URL:
> 
> http://mysite.com:8080/toto/hello.jpg
> 
>  
> 
> I want to access this URL using the following alias in my browser:
> 
> http://alias1.com:8080/hello.jpg (note that the context name TOTO is gone)
> 
>  
> 
> So I need to link a virtual host to an application right? I look to but
> alias in the context.xml file .. I haven't found anything to specify my
> virtual host.

Alias is a subelement of Host in server.xml, not context.xml.

Rename your application ROOT.war and deploy it in the appbase of your
virtual host.

p



> I read the doc but since I want to deploy a war using ANT script I not sure
> it apply or how it should apply.
> 
>  
> 
> Any help will be greatly appreciated.
> 
>  
> 
> Thanks
> 
> Best Regards
> 
> David
> 
>  
> 
>  
> 
>  
> 
>  
> 
> 


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to