Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Can you alias a directory path using Tomcat?

Jeff Mrozinski
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm new to Tomcat, so I'm getting the feeling that this is either a very easy task or a question that will somehow offend people just by thinking that it's possible. At any rate, I need something like this:

To serve this:

If I were allowed to use an httpd.conf file, it'd look like this:
Alias /publicUrlPath/ /path/on/server/

After some research, I found that you can alias the hostname using server.xml, but I'm not good enough to tweak this to fit my situation. At best, I could make **http://wrong_server/path/on/server/file.html** serve **http://my_server/path/on/server/file.html**.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic