Tuesday, September 15, 2009

How to configure context path (web app url) in tomcat 5

Sometimes we want to change the context path

from http://localhost:8080/mywebapp
to http://localhost:8080/somedir/otherdir/newcontext

Just follow the steps:

1) create folder configwebapp, under Catalina_home/webapps

2) copy war to Tomcat_home/webapps/configwebapp/mywebapp

3) make following entry into Tomcat_home/conf/server.xml (just above – closing of Host)

……
……

< Context path="/somedir/otherdir/newcontext"
docBase="C:/apache-tomcat-5.5.23/webapps/configwebapp/mywebapp"
reloadable="true" >
< /Context>



Restart tomcat !

----------------------------------------------------------------------------------

2 comments:

  1. merit casino: Best deposit bonus and bonus codes - Deccasino
    It is the second type of casino bonus. This is an opportunity for a lot septcasino of players to enjoy it 바카라 사이트 and earn 메리트카지노 money when playing in it.

    ReplyDelete
  2. MGM Grand Casino & Hotel - Mapyro
    View 부산광역 출장마사지 MGM 세종특별자치 출장안마 Grand Casino & Hotel (book) 안동 출장안마 location in Illinois, United 고양 출장안마 States, 인천광역 출장안마 revenue, industry and

    ReplyDelete