Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Virtual Directory

 
Suresh Kanagalingam
Ranch Hand
Posts: 82
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

I need to setup a virtual directory using Tomcat 5. I tried adding context in server.xml in <Tomcat Home>\conf directory, but that does not seem to work. Here is what I have in server.xml file (Running WIN 2003):

<Context path="/download" docBase="E:/reports/download" />

From the page I am refering as http://localhost/download

Can anyone tell me why this is not working.

Yes I restarted Apache services.

Thanks
Suresh
 
Suresh Kanagalingam
Ranch Hand
Posts: 82
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Just to clarify more.. This directory will be used to put some files for the users to download from.

Thanks
Suresh
 
Paul Clapham
Sheriff
Posts: 21133
32
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Apache is running as a Windows service? Then most likely that isn't working because the machine it's running on doesn't have an E: drive. And services don't normally have access to drives that might be mapped when a user logs on to the machine.
 
Suresh Kanagalingam
Ranch Hand
Posts: 82
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Paul,

Yes it is running as a service and the machine where Tomcat is running has an 'E' drive (phisical drive and not a mapped drive).

Thanks
Suresh
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you checked the log files?
Tomcat will usually whine pretty loudly if it can't start a context specified in server.xml.
 
Suresh Kanagalingam
Ranch Hand
Posts: 82
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes I checked the log files and there is no reference to any missing or not found context path nor any relevenet information.

Thanks
Suresh
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic