Possible to map subdomains to webapps in a standard Java app server?
问题 If you have two webapps, foo and bar, in a J2EE app server like Tomcat, the normal way to distinguish them is like this: domain.com/foo domain.com/bar I'd like to do this instead: foo.domain.com bar.domain.com Is this possible? 回答1: It's not something that can be done in a "standard" way - each Java app server has different ways of configuring itself. You will need to look at the documentation for which-ever server you want to deploy to. For Jetty, that documentation is here: http://wiki