This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js and have Paul Jensen on-line!
See this thread for details.
Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to set application context path in server.xml  RSS feed

 
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
Posts: 66144
143
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
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!