aspose file tools*
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

Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Delare virtual host" Watch "Delare virtual host" New topic

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"/>

I access testlocalhost:8080/examples but cannot find the page.
I agree. Here's the link:
subject: Delare virtual host
Similar Threads
Problem while virtual hosting in Tomcat 5.0.28
Virtual host apps reload localhost app
Multiple web applications, one virtual host, access logging
How to deploy my own directory in Tomcat?
Tomcat error when running