• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

Changing docbase?

 
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
When I installed Apache Tomcat 4.1.24, I downloaded this new conf/server.xml document that uncommented the line:
<Context path="" docBase="ROOT" debug="0" />
Now, I want to be able to serve files that are located on my C-drive without having to copy them into my webapps/root folder. If I change docBase, will I be able to do so? If so, what do I change it to?
Thanks in advance for any help or suggestions!
 
Sheriff
Posts: 67752
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Rather than changing the default docbase, you create as many new contexts as you like. Here's a couple of examples from my own server.xml on a Windows box:

These are them available as
[code]
http://localhost:8080/garden/
and
http://localhost:8080/lawns/
[/code}
respectively.
hth,
bear
 
Julia Irving
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for the help! I added the following line by editing in word and then resaving as an .xml:

However, when I went to open the xml file up, I got an error saying invalid character found in text content.
Sorry, but I am new at this. Should I be editing the xml file some other way.
[ August 19, 2003: Message edited by: Julia Irving ]
 
Bear Bibeault
Sheriff
Posts: 67752
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Absolutely! There's no telling what Word will do to a file. Most probably it's turing your quotes into so-called "smart quotes".
If you have nothing else to use, use Notepad or a similar text editor.
bear
 
Julia Irving
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It worked perfectly! Thanks a lot for all of your help!
 
Note to self: don't get into a fist fight with a cactus. Command this tiny ad to do it:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic