VirtualHost Issue (Ubuntu 6.10)
David Koski
david at kosmosisland.com
Mon Jan 8 16:52:00 UTC 2007
On Monday 08 January 2007 08:39, John R Cichy wrote:
> On Mon, 2007-01-08 at 08:12 -0800, David Koski wrote:
> > On Monday 08 January 2007 06:23, Derek Broughton wrote:
> > > > Try replacing *:80 with host_ip_address:80, this worked for me, but
> > > > others might have a better solution.
> > >
> > > Yeah, that rather defeats the purpose of virtual hosts.
> >
> > It does not defeat the purpose of *name* *based* virtual hosts.
>
> That's what I thought, but that statement made me take another look at
> what I'm doing here. I have a multi-honed system with the web server
> responding differently according to the name requested/ from which IP
> used to make the request (i.e. www.my_site.com on 192.168.2.125 returns
> production version, www.my_site.com on 192.168.1.125 returns development
> version).
You don't need both IP based and name based virtual hosts:
http://httpd.apache.org/docs/2.0/vhosts/
David
More information about the ubuntu-users
mailing list