On 8/18/07, Jerome Louvel <[EMAIL PROTECTED]> wrote:
>
> Alex,
>
> > > The "serverAddress" property indeed does comparisons based on the
> > > numerical IP address. There are some convenience static methods on
> > > VirtualHost:
> > >  - getLocalHostAddress()
> > >  - getIpAddress(String domain)
> >
> > This seems a bit inconsistent that you can use hostname when
> > adding a server:
> >
> >    getServers().add(Protocol.HTTPS,"localhost",8080);
> >
> > but you have to use a numeric ip addresses with
> > setServerAddress on VirtualHost:
> >
> >    vhost.setServerAddress("127.0.0.1");
>
> The problem is that the mapping between domain name and IP address isn't
> symetric.

Indeed.

> One IP can be mapped to several domain names. However, a domain
> name maps to one and only one IP.

False.
One IP can serve multiple hostnames. I.e., virtual hosts.
One hostname can be served by multiple IP addresses. I.e., distributed
server farms.

Take care,
John

Reply via email to