> Am 06.09.2018 um 16:21 schrieb Eric Covener <cove...@gmail.com>:
> 
> On Thu, Sep 6, 2018 at 10:16 AM Eric Covener <cove...@gmail.com> wrote:
>> 
>> Today I learned that ServerAlias is not permitted in global scope.
>> while writing tests in a different framework for $bigco.
>> 
>> I would like to allow them in trunk. They are normally not needed  as
>> aliases are really only a way to pick the best NVH from a set of
>> virtual host sharing an TCP address specification -- and if the global
>> config is the best TCP match, there is only one.  But this would allow
>> the StrictHostCheck "don't respond to unknown hostnames" to add stuff
>> when NVH'es are not (totally) used.
>> 
>> I plan to keep it in trunk.  Any concerns?
> 
> Moments later, I learned that this might not be a very good idea after
> all, as the aliases are a little too ingrained in the NVH gorp in
> vhost.c.
> I will probably just doc that if using this feature, one should cover
> listening ports with vhosts or deal with a single name [servername]

Was just about to write that there are some checks in vhost.c that
seem to recognize the main server by s->names == NULL. ;-)

From usability point of view, seems like an arbitrary restriction to
not allow ServerAlias in global scope. It does not need to inherit...

-Stefan

Reply via email to