Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

URL path

 
loni silverstein
Greenhorn
Posts: 14
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I see that the common url path for accessing the servlet is http://myserver/myapps/servlet/myservlet. Can one put the myapps under another level of directory, let say x (so the servlet is physically located in c:\\Tomcat\webapps\x\myapps\WEB-INF\classes) so that the url becomes http://myserver/x/myapps/servlet/myservlet? what file (server.xml, web.xml?), if any, does one have to modify to accomplish this? Thank you
 
Nimchi Yung
Ranch Hand
Posts: 71
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try this:
add this entry to your %CATALINA_HOME%/conf/server.xml
<Context path="/x/myapps" docBase="x/myapps" debug="0"
reloadable="true" crossContext="false"/>
--Nimchi
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic