Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 24 Jan 2000 11:41:27 -0800
From:      David Fuchs <beastie@beastie.net>
To:        HokieGrind <hokiegrind@yahoo.com>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: Apache 1.3.9 (ports) and FreeBSD3.3 with VirtualHosts
Message-ID:  <E12CpMd-0008q4-00@www.beastie.net>
In-Reply-To: <20000124190157.20125.qmail@web2002.mail.yahoo.com>
References:  <20000124190157.20125.qmail@web2002.mail.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Virtual hosts aren't really supposed to be as 
complicated as you're making them.  Here's what I have 
in rc.conf (You shouldn't need to add anything to 
rc.local for this) to define my rl0 device (outside 
network), and my mx0 device (inside network).

ifconfig_rl0="inet 204.244.13.52  netmask 255.255.254.0"
ifconfig_mx0="inet 192.168.1.1  netmask 255.255.255.0"

In my httpd.conf file I simply use multiple virtual 
host entries such as this one:

<VirtualHost 204.244.13.52>
        ServerAdmin beastie@beastie.net
        DocumentRoot /usr/www/www
        ServerName www.beastie.net
        ErrorLog /usr/www/www/error.log
        CustomLog /usr/www/www/access.log Combined
</VirtualHost>

So if I go to www.beastie.net it points me to 
204.244.13.52.  Of course, the www.beastie.net name is 
set up with my DNS server, which points the name 
www.beastie.net to 204.244.13.52.

You won't be able to ping the device by name.  Try 
pinging the IP that you set it to via ifconfig.

IF this doesn't help, or if I'm unclear, just ask.

-David Fuchs



Quoting HokieGrind <hokiegrind@yahoo.com>:

> I have been attempting to configure my FreeBSD3.3
> install to use Apache 1.3.9, with multiple
> VirtualHosts.  I am interested in learning the
> required configurations which equate to the rc.local
> entries used to initialize the network interface for
> multiple IP's/VirtualHosts (like /sbin/ifconfig e0:1
> 127.16.0.100).
> 
> Thus far, I've made entries in my httpd.conf file, and
> added a line to the /etc/rc.conf similar to the
> following:
> 
>  ifconfig_xl0_myid_dev2="inet 155.16.0.105  netmask
> 255.255.0.0"
> 
> Even with this entry, I still cannot ping the virtual
> host 'myid_dev2' - interface not up.
> 
> What else needs to be configured in order for me to
> use VirtualHosts with Apache1.3.9 and FreeBSD3.3?
> 
> hokiegrind@yahoo.com
> 
> __________________________________________________
> Do You Yahoo!?
> Talk to your friends online with Yahoo! Messenger.
> http://im.yahoo.com
> 
> 
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-questions" in the body of 
the message
> 
> 


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E12CpMd-0008q4-00>