What is the right-hand side of the virtual host matcher
patterns? Is it the host of the server URL, or is it
the name of a virtual server?
Suppose I create a virtual server "xyz foo module" with
the server URL http://foo.example.org, and modified dns
so that my server has an alias foo.example.org. After I
added the virtual host matcher, http://foo.example.org
does not work (returns file not found), but http://foo
works (assuming that my domain is example.org).
If I now create a pattern "^foo\.example\.org$ foo",
then both host names work. If I instead create a pttern
"^foo$ foo.example.org", then both host names will
return file not found.
Suppose I create another virtual server "xyz foo module
(testing)" with the server url
http://foo.bar.example.org, and modified dns so that my
server also has an alias foo.bar.example.org. It seems
that no matter what pattern I add to the host matcher,
http://foo.bar.example.org returns pages from the first
Can someone explain what is the correct way to use the
virtual host matcher?
Log in to post a comment.