Date: Fri, 27 Feb 1998 15:39:00 -0800 (PST) From: Shawn Ramsey <shawn@luke.cpl.net> To: Brian Neal <brian@ns1.cetinc.com> Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Help configuring FreeBSD for multiple virtual hosts... Message-ID: <Pine.BSF.3.95.980227153546.1739B-100000@luke.cpl.net> In-Reply-To: <3.0.1.32.19980227171937.007bbdd0@ns1.cetinc.com>
next in thread | previous in thread | raw e-mail | index | archive | help
> 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 : <VirtualHost 209.150.92.97> 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 </VirtualHost> 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?Pine.BSF.3.95.980227153546.1739B-100000>