> Date: Thursday, April 15, 2021 20:46:56 -0600
> From: Jonathon Koyle <literea...@gmail.com>
>
> I'm not sure, but my understanding is that of you have multiple
> virtual hosts on one machine, and they all listen on the same
> interfaces/ip addresses then they have to have unique ServerName
> directive.  If you have duplicates, they will all be served by the
> first virtual host, with a matching ServerName, read httpd.
> 
> I'm not really an expert, but you need to do something like:
> A. Distinguish the servers (distinct hostname, IP, or port).
> B. Have a single virtual host include the definitions for all paths
> as locations or maybe directories, could possibly maintain separate
> files by using the include directive, not sure.
> C. Have a single virtual host that proxies to the other defined
> virtual host - they still need a unique name, ip or port.

The OP may want to read up on apache name-/ip-based virtual host
configurations:

  <https://httpd.apache.org/docs/current/vhosts/name-based.html>

If name-based each has to be a unique (resolvable) fqdn. If IP-based,
each has to have its own ipnumber.



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org

Reply via email to