Ferenc Engard wrote: > I have two sites with two different domain names, say www.server1.com > and www.server2.com. > > How can I set up a name-based virtualhost, which accepts both domains, > and keeps the difference between them, e.g. the 'host' table has the > chance to differentiate between the two domains? > > If I duplicate the virtualhost section, and change only the "ServerName" > directive, it is a solution, but why should I replicate the same data n > times if I do not want to change anything?
Use one VirtualHost entry, and use ServerAlias for the scond domain name. > Anyway, as my (only) virtualhost is the default, it accepts every query, > just the $_SERVER[SERVER_NAME] and the $_SERVER[HTTP_HOST] variables > will differ: the former takes it value from the "ServerName" directive, > the latter takes from the "Host:" row of the query, and midgard compares > its host table with the formes (of course). Is that correct? I thought Midgard would act on the Host: header. In any case, midgard will act on whatever Apache returns from ap_get_server_name(request_rec*). > One more question: there was a thread, but I do not find it, where there > was a discussion about when has an existing apache page (from the > filesystem) precedence over a midgard page. How does it work? That's in MMP, and enabled by setting MidgardFavorFiles On. See also the INSTALL file included with MMP. Emile --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
