• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

puzzle: How to change the URL in my webappliction?

 
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,everybody! I'm new to Tomcat.Can anybody help me with this problem below:

my web application is called :helloapp and the context's path of server.xml
is :
<Host name="localhost" appBase="webapps" debug="0" auto-deploy="true">
<Context path="/helloapp" docBase="helloapp">
</Host>
I access my web application by the URL:
http://localhost:8080/helloapp/index.html

and now I want to change my URL of web applicaton to :
http://localhost:8080/pengpenglin/index.html

I change the value of "path" of "Context" to "/pengpeng",but when I restart
my Tomcat and Browser I found a crazy problem:
I can access my web application by the old URL and new URL!

and then I delete the director of helloapp in the "work" directory ,but the
result is the same.

please help me,thanks a lot!!
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic