Kwan Lowe wrote:
>> On the subject of apache, I know that apache can serve up multiple sites
>> on the same IP address. But can it serve up a multitude of sites on a
>> single box, each of which has its own IP (assuming the box has a single
>> NIC)?
>>
>
> Yes, this works well and is called "IP Based Virtual Hosting". As Steve mentioned,
> you can alias the IPs to a NIC. However, setting up "Name Based Virtual Hosting"
> IMHO is simpler than configuring IP hosting. Is there a specific reason you want to
> use IP based hosting?
>
There are really only two good reasons for doing IP based virtual hosting:
1. You are servicing HTTP 1.0 clients that don't send the HTTP 1.1 Host:
header.
2. You are servicing HTTPS clients (SSL, port 443). Each port bind has a
different signed cert for SSL connections (each will need a different
common name (CN) that the clients will trust).
HTTP 1.0 clients are fairly rare anymore. The first vhost defined for a
port binding will be used to service HTTP 1.0 clients that don't send a
Host: header. It's generally better to throw up a default page to alert
the user that they need to upgrade their client.
The single biggest reason for IP based virtual hosting is for secure
page hosting.
-- - Ian C. Blenke <icblenke@nks.net>
This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 18:52:31 EDT