You're going to want to do some URL rewriting, probably. I mean, you could achieve that via other means (maybe add a servlet mapping & missing template handler for /page1.cfm*, for example-- though that wouldn't be feasible for page2, page3, etc.- even /page* would be pretty inflexible), but best is going to be rewriting.
For a machine with a heavy load, you'll probably want to use apache httpd or nginx, but there's a pure java solution called URLRewriteFilter that works quite well in Tomcat, albeit with more overhead (it's more powerful, too). :Den -- Politeness is to human nature what warmth is to wax. Arthur Schopenhauer On Tue, Jun 7, 2011 at 12:56 PM, Matt C wrote: > So, ignoring the port restriction, let's say I want to have (locally) > "http://admin.mysite:8080/page1.cfm" represent "http://localhost:8080/ > openbd/mysite/admin/page1.cfm". How would I do this in Tomcat? > > I tried creating a Host named "admin.mysite" in server.xml whose > appBase is "webapps/openbd/mysite/admin", but this doesn't seem to > work. > > If I create an Alias in the localhost Host in server.xml, that only > gives me an alternate name for localhost, not a shortcut to lower > directories, correct? > > I can create a Context in the localhost Host to shortcut my path, but > I must still begin with "http://localhost:8080/..." which I suppose is > close enough, but I'd still love to figure out how to have "http:// > mysite" point to a directory within "http://localhost/openbd". > -- official tag/function reference: http://openbd.org/manual/ mailing list - http://groups.google.com/group/openbd?hl=en
