Actually, I was speaking about virtual hosts in Apache Web Server. ;) A few more details:
I have an application that parses the URI for some parameters. Basically the sponsors hate URLs that look like: http://www.foo.com/?foo=a&bar=b&baz=c So my fix was to parse the URI for the parameters in a known order. http://www.foo.com/a/b/c They don't like this either. less typing, cleaner, but *still* not 'friendly'. I might tell them that people using the web are used to this sort of thing by now, but hey, they're the sponsors and they want it different. So my last option is to flatten the parameters and use a subdomain. http://abc.foo.com/ http://xyz.foo.com/ So that's two virtual hosts in Apache, jk mounted to a single (default) application on Tomcat. That's possible, right? > -----Original Message----- > From: John Turner [mailto:[EMAIL PROTECTED] > Sent: Thursday, August 14, 2003 8:59 AM > To: Tomcat Users List > Subject: Re: From which apache virtual host did a request come from? > > > > It's within <Host>. > > John > > Angus Mezick wrote: > > > Isn't there an <Alias> tag within <Context>? > > > > > >>-----Original Message----- > >>From: John Turner [mailto:[EMAIL PROTECTED] > >>Sent: Thursday, August 14, 2003 9:32 AM > >>To: Tomcat Users List > >>Subject: Re: From which apache virtual host did a request come from? > >> > >> > >>Mike Curwen wrote: > >> > >> > >>>1) Is it possible to mount several virtual hosts to the same web > >>>application (the default one, as it happens) > >> > >>I think this is possible, though maybe not desired. > >> > >>You can see this with the manager app. Setup a bunch of > >>virtual hosts > >>that have the same appBase, with Contexts that have the > same docBase, > >>and you will be able to reach the same application on any > of the host > >>names. I determined that it was better to give a separate > appBase to > >>each virtual host. > >> > >>If you mean setting separate appBase's for each virtual host, > >>and still > >>being able to access the same webapp (Context with the same > >>docBase not > >>a copy of the webapp in another docBase), I would say "no". > It's at > >>least a security risk. Someone please correct me if I'm wrong. > >> > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
