Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   Java (http://www.velocityreviews.com/forums/f30-java.html)
-   -   tomcat: remove webapp from the url (http://www.velocityreviews.com/forums/t482638-tomcat-remove-webapp-from-the-url.html)

prezjt 03-08-2007 04:56 PM

tomcat: remove webapp from the url
 
I have multiple websites with a webapp of its own setup with Virtual
Host.

How can I have the webapp removed from the url?

Example:

www.example1.com - located /webapps/example1
www.example2.com - located /webapps/example2
www.example3.com - located /webapps/example3

The url currently is http://www.example1.com/example1/index.jsp

Here is what I prefer: http://www.example1.com/index.jsp


Thanks ~


Tor Iver Wilhelmsen 03-08-2007 11:10 PM

Re: tomcat: remove webapp from the url
 
På Thu, 08 Mar 2007 17:56:00 +0100, skrev prezjt <presidentjt@gmail.com>:

> Here is what I prefer: http://www.example1.com/index.jsp


Set example1 as the virtual host's root application.

<Context path="/" docBase="example1" />

Or play around with using different appBase folders for the virtual hosts.


All times are GMT. The time now is 01:26 PM.

Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.