From owner-freebsd-questions Fri Feb 27 15:40:07 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id PAA28692 for freebsd-questions-outgoing; Fri, 27 Feb 1998 15:40:07 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from luke.cpl.net (luke.cpl.net [209.150.92.68]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id PAA28595 for ; Fri, 27 Feb 1998 15:39:58 -0800 (PST) (envelope-from shawn@luke.cpl.net) Received: from localhost (shawn@localhost) by luke.cpl.net (8.8.8/8.6.12) with SMTP id PAA02780; Fri, 27 Feb 1998 15:39:00 -0800 (PST) Date: Fri, 27 Feb 1998 15:39:00 -0800 (PST) From: Shawn Ramsey To: Brian Neal cc: freebsd-questions@FreeBSD.ORG Subject: Re: Help configuring FreeBSD for multiple virtual hosts... In-Reply-To: <3.0.1.32.19980227171937.007bbdd0@ns1.cetinc.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > I am trying to set up a FreeBSD web server to be a host for multiple > web domains (i.e. www.site1.com, www.site2.com), but I can't figure out > how to get freebsd to use the second IP address as well. By the way, To assign an aliased IP to freebsd, this is what you need: ifconfig fxp0(replaced with your network device) 1.1.1.1 alias netmask 255.255.255.255 route add 1.1.1.1 127.0.0.1 Obviosly, replace the 1.1.1.1 with the real IP. :) Then assign each domain to a separate IP. To do this on bootup, I just do something like "sh /etc/virtualips" from rc.local. > I am using Apache for the web server. Does anyone know how I can set > this up? Here is an example : DocumentRoot /usr/local/etc/httpd/htdocs/cpl/new Servername www.cpl.net Errorlog logs/cpl/error_log TransferLog logs/cpl/access_log AgentLog logs/cpl/agent_log Refererlog logs/cpl/refer_log To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message