Re: Is this a bug or a feature?

From: Henrik Nordstrom <[email protected]>
Date: Thu, 08 May 1997 21:40:11 +0200

Yes, I agree that the order of virtual and virtual_uses_host_headers
should be reversed... (the current ordering is confusing, and not very
flexible)

if virtual_host and Host: header
  use Host: header
elsif virtual
  use IP addr
else
  use accel prefix

---
Henrik Nordstr�m
Graham Toal wrote:
> 
> I finally got the virtual hosting using "Host:" to work (thanks Henrik),
> but only by looking at icp.c where I discovered that it does not do
> the magic with the URL rewriting if in vmode (ie when httpd_accel
> contains "virtual".)
> 
> Wouldn't it make sense to always use the Host: info if enabled,
> except when it isn't present, in which case you'd fall back to
> the IP from the sin_addr?  That way you can have real virtual hosts
> by IP alias *and* fake virtual hosts sharing a single IP.
> 
> G
Received on Thu May 08 1997 - 13:08:02 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:35:08 MST