Currently you can set a server's bind address by name (e.g. "localhost") but when you set the server address on a VirtualHost instance, the wrong thing happens (e.g. nothing works).
I think the problem is that the server's address is in numeric form internally. For example, in the case of "localhost", you are comparing "localhost" to "127.0.0.1"--which is always going to fail. I have configuration files that I read where I really want to use the hostname that resolves via DNS because an administrator might reconfigure host names. As such, I'd like to use a host name when on the setServerAddress() call. I think this would be a simple issue of using java.net.InetAddress to get the numeric address and then using its textual form for the match pattern. The question is whether this is the desired behavior or not? --Alex Milowski

