Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to set application context path in server.xml

 
Ruchik Bhatt
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
How can i set an application context path in server.xml if the application folder is not in webapps folder (windows)?
eg.
Tomcat folder - c:\tomcat\
Application folder - c:\myapp\
Thanx in Advance
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65218
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here's an example lifted directly from my server.xml on my Windoze box:

hth,
bear
 
Chirag Shah
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have an apache connected to the tomcat and have multiple virtual hosts listed on the apache end. How do I define a root application for each virtual host on tomcat's end.
I have the first site (web-inf parent directory) in the root currently and it responds to request like www.mysite1.com.
Now i want another tomcat web-application to respond to requests for the other site(www.mysite2.com) without any addition parameters.
Thanks in advance
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic