Date: Wed, 6 Dec 1995 10:52:41 -0600 (CST) From: Joe Greco <jgreco@brasil.moneng.mei.com> To: alexei@loach.org (Alexei Nikolaevich Romanov) Cc: freebsd-isp@freebsd.org Subject: Re: Please help! Message-ID: <199512061652.KAA08482@brasil.moneng.mei.com> In-Reply-To: <199512052226.WAA23921@albion.loach.org> from "Alexei Nikolaevich Romanov" at Dec 5, 95 10:26:17 pm
next in thread | previous in thread | raw e-mail | index | archive | help
> I'd be perpetually indebted if one of the providers out there who use virtual > hosts, to multi-home web server pages, would be so deeply kind as to provide > me with a sample of the ifconfigging required to set up the aliased addresses, > or a pointer to the documentation available on doing so; I've searched, and > banged my head against walls for the past two days, and I'm at the end of > my rope, and would -gladly- return the favor of help; I'm an nntp guru, and > have something resembling mastery of INN's tricky whiles. I use Apache.... it makes life somewhat easier tazenda.sol.net# head /etc/start_if.ed0 #! /bin/sh - /sbin/ifconfig ed0 206.55.64.254 netmask 0xffffff80 /sbin/ifconfig ed0 alias 206.55.64.130 netmask 0xffffffff /sbin/ifconfig ed0 alias 206.55.64.131 netmask 0xffffffff /sbin/ifconfig ed0 alias 206.55.64.132 netmask 0xffffffff /sbin/ifconfig ed0 alias 206.55.64.133 netmask 0xffffffff /sbin/ifconfig ed0 alias 206.55.64.134 netmask 0xffffffff /sbin/ifconfig ed0 alias 206.55.64.135 netmask 0xffffffff /sbin/ifconfig ed0 alias 206.55.64.136 netmask 0xffffffff /sbin/ifconfig ed0 alias 206.55.64.137 netmask 0xffffffff tazenda.sol.net# view /usr/local/www/server/conf/httpd.conf [..... all sorts of stuff .....] MaxRequestsPerChild 30 # VirtualHost: Allows the daemon to respond to requests for more than one # server address, if your server machine is configured to accept IP packets # for multiple addresses. This can be accomplished with the ifconfig # alias flag, or through kernel patches like VIF. # Any httpd.conf or srm.conf directive may go into a VirtualHost command. # See alto the BindAddress entry. <VirtualHost www.sol.net> ServerAdmin webmaster@www.sol.net DocumentRoot /usr/local/www/docs/www.sol.net ServerName www.sol.net ErrorLog logs/www.sol.net-error_log TransferLog logs/www.sol.net-access_log </VirtualHost> <VirtualHost www.gmttech.ods.net> ServerAdmin webmaster@www.gmttech.ods.net DocumentRoot /usr/local/www/docs/www.gmttech.ods.net ServerName www.gmttech.ods.net ErrorLog logs/www.gmttech.ods.net-error_log TransferLog logs/www.gmttech.ods.net-access_log </VirtualHost> <VirtualHost klements.ods.net> ServerAdmin webmaster@klements.ods.net DocumentRoot /usr/local/www/docs/klements.ods.net ServerName klements.ods.net ErrorLog logs/klements.ods.net-error_log TransferLog logs/klements.ods.net-access_log </VirtualHost> Note that DNS maps the virtual host name to a physical address or alias. Hopefully this will be enough to get you on the right track. "Works for me." Thank you for offering news help but I run some damn big news systems... however there is someone who was asking for help the other day and I would encourage you to return the favor by writing Joel Kelmenson <jody@quicklink.com> and helping out in whatever way you are able. ... Joe ------------------------------------------------------------------------------- Joe Greco - Systems Administrator jgreco@ns.sol.net Solaria Public Access UNIX - Milwaukee, WI 414/342-4847
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199512061652.KAA08482>