Rocco Scappatura wrote: >>> 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. > > How our dear friend Hassan well knows, I have a similar problem.. > > I would to point out other two difficulties: > > 1) What's happen if I have 2 app which I want to assign the root URL? Sure > I can't rename both WARs as ROOT.war... :-(
Well you can't, obviously, just like you can't put two index.html files in the root directory of an Apache HTTPD server. > 2) Suppose that I have another level inside the root webapps dir (eg: > http://mysite.com:8080/toto/subdir/hello.jpg) and I would like to access > to the URL above with http://alias1.com:8080/hello.jpg. How I behave > myself in this situation? :-((((( If you mean a second virtual host, then you would add a second host entry to your server.xml file. p > Regards, > > rocsca > > > --------------------------------------------------------------------- > To start a new topic, e-mail: users@tomcat.apache.org > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]