Skip to content

Instantly share code, notes, and snippets.

@zhang2333
Last active October 25, 2015 11:32
Show Gist options
  • Save zhang2333/c7c6459e33d5df914990 to your computer and use it in GitHub Desktop.
Save zhang2333/c7c6459e33d5df914990 to your computer and use it in GitHub Desktop.
Set default webapp of tomcat.

Set default webapp of tomcat.

File: tomcat/conf/server.xml
Tip: put in <Host> behind <Valve>.
Effect:http://localhost:8080/myapp == http://localhost:8080


<Context path="" docBase="/usr/local/tomcat7/webapps/myapp">
  <WatchedResource>WEB-INF/web.xml</WatchedResource>
</Context>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment