Hi Alex,

> In the end, when you add the server the domain name resolves 
> to a single
> IP address that is the bind address for the server.  My only 
> suggestion is that
> if I can use a name to set the bind address I should be able 
> to use the same
> name to restrict a VirtualHost instance to that same address.
 
[...]

> I don't see the issue with allowing 
> VirtualHost.setServerAddress() to do the
> same a resolve a domain name to a numeric IP address.  If you 
> give it the
> wrong domain name that is the same error as giving it the 
> wrong IP address.

Ok, I understand your point of view. It makes sense but things are a little
more complex because the "serverAddress" property is actually a Regex
expression that will be matched against a numerical IP address. It would be
hard to automatically decode domain names from this regex into IP address.

Also, note that you don't have to restrict by "serverAddress", by default a
VirtualHost will accept any IP address. You could simply restrict by
"hostDomain" instead.

Best regards,
Jerome  

Reply via email to