GeeCON Prague 2014*
The moose likes Tomcat and the fly likes Delare virtual host Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Products » Tomcat
Bookmark "Delare virtual host" Watch "Delare virtual host" New topic
Author

Delare virtual host

michael yue
Ranch Hand

Joined: Nov 20, 2003
Posts: 204
Hi all,

I try to declare a virtual host in my local pc and tried to access it but it seems cannot find the page. Here is what I put in server.xml

<Host name="testlocalhost" appBase="D:/jakarta-tomcat-4.1.31/webapps">
<Context path="" docBase="."/>
<Context path="/examples" docBase="examples" debug="0"
reloadable="true" crossContext="true"/>
</Host>

I access testlocalhost:8080/examples but cannot find the page.
 
GeeCON Prague 2014
 
subject: Delare virtual host