Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to set the context path to root of the website

 
Abhilash Chander
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All, I have uploaded my .WAR file on to the server and deployed it. But now the URL by which it is accessible is

http://example.com/myapp/

where myapp, is the name of the WAR file that I uploaded on to the server.

I want to know how can I set it to

http://example.com/

that is, skip the name of the WAR file in the website context path. I tried setting the path= "/" in context.xml but was of no use. Kindly suggest some way to do it.

Thanks in advance
 
vijin das
Ranch Hand
Posts: 129
Firefox Browser Java Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Abhilash Chander wrote:Hi All, I have uploaded my .WAR file on to the server and deployed it. But now the URL by which it is accessible is

http://example.com/myapp/

where myapp, is the name of the WAR file that I uploaded on to the server.

I want to know how can I set it to

http://example.com/

that is, skip the name of the WAR file in the website context path. I tried setting the path= "/" in context.xml but was of no use. Kindly suggest some way to do it.

Thanks in advance


please Specify your server is it Tomcat ........ specify version also ..........

 
Hardik N Shah
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Another logical way i can suggest is you can set redirect in your welcome page of application.
 
vijin das
Ranch Hand
Posts: 129
Firefox Browser Java Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
please check
RESIN CONFIG
which may help you
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic