>Why this is a matter to the Apache? In a real scenario, consider that an
Apache Reverse
>Proxy servicing to 100 web servers, one of these servers is turned off
or...Apache must
>service to other servers!!
>I turned off a server to solve this conflict. Why Apache never read
another Virtual
>Host configuration?

It has read the full configuration and created the Virtual Hosts; however,
if a request
doesn't contain a host header that matches the name of one of the virtual
hosts, Apache
will pick a default Virtual Host for the given IP:Port and if not
explicitly defined, the
first defined virtual host "has the highest priority and can be seen as the
default or
primary server" (https://httpd.apache.org/docs/2.4/vhosts/examples.html).

In your case, if you do not have a DNS or hosts file entry, you could also
test with
CURL something like
curl 127.0.0.1:2080 -H "Host=node3"
curl 127.0.0.1"2080 -H "Host=node4"

Or you could use firefox dev tools to modify (add the Host header) and
resend requests to your server.

>> Thank you Antony.
>> No, Google and Yahoo are exmaple.

>So, please use more meaningful names when asking your questions.  I've
already
>said that using existing domains which are not yours misleads the person
>answering into thinking you really are trying to use these services.

I don't really think a subdomains versus different domains makes any
difference as long as
both domain names resolve to the Reverse Proxy server IP address.  If you
really want to use
unique domains for the discussion, you could use domain1.com and domain2.com
or
example1.com and example2.com.

Reply via email to