Hi all!

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?

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).

Did anybody else had the same configuration?

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?

Thanks:
Circum


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to