From owner-freebsd-isp Fri Sep 24 17:40: 0 1999 Delivered-To: freebsd-isp@freebsd.org Received: from dns.MexComUSA.net (cm4094.cableco-op.com [208.138.40.94]) by hub.freebsd.org (Postfix) with ESMTP id 9658E14F77 for ; Fri, 24 Sep 1999 17:39:57 -0700 (PDT) (envelope-from eculp@MexComUSA.net) Received: from MexComUSA.net (cm-208-138-47-186.cableco-op.ispchannel.com [208.138.47.186]) by dns.MexComUSA.net (8.9.3/8.9.3) with ESMTP id RAA40948; Fri, 24 Sep 1999 17:38:56 -0700 (PDT) (envelope-from eculp@MexComUSA.net) Message-ID: <37EC19A0.182192A7@MexComUSA.net> Date: Sat, 25 Sep 1999 00:38:57 +0000 From: Edwin Culp Organization: Mexico Communicates X-Mailer: Mozilla 4.61 [en] (X11; U; Linux 2.2.5 i386) X-Accept-Language: en MIME-Version: 1.0 To: Kelsey Cummings Cc: freebsd-isp@FreeBSD.ORG Subject: Re: many third level domains -- looking for advice References: <010101bf06e5$119247e0$33f9c9d0@neteze.com> Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Kelsey Cummings wrote: > I've got a customer who wants to sell third level domains with small virtual > webs and one email account. I've agreed to do it, but I'm trying to figure > out the best way to provide him this service. > > Its unfortunate that bind doesn't support wildcards in A records (it doesn't > right?) otherwise DNS configuration would be very simple. As far as I can > tell apache doesn't have an way of doing regex matching in the configs (at > least as would be needed for this setup) ie: > > *.hisdomain.com IN A www.hisdomain.com > > > ServerName $1.hisdomain.com > DocumentRoot /usr/home/user/www/$1 > > > That would just be too easy. :( > > Has anyone setup something similar? How did you do it? > > Also -- If I setup a large number of virtual hosts in this manner (he's > talking about 300 or so) I'd like to point all of his virtual hosts logs to > the same file:: does this work or cause corruption of the logs? The only > other way I could think of accomplishing it would be to run a seperate httpd > for him, where the logs for the virtual host would be inherited from the > main server, correct? > > > ServerName 1.hisdomain.com > DocumentRoot /usr/home/user/www/1 > CustomLog usr/home/user/access-log combined > > > > ServerName 2hisdomain.com > DocumentRoot /usr/home/user/www/2 > CustomLog /usr/home/user/access-log combined > /VirtualHost> > I think the following may be the better format. You can use one or more ipīs (you can do this with multihomed machines - poor man's incoming load balancing:-) NameVirtualHost 208.138.0.94 NameVirtualHost 209.249.0.65 ServerAdmin webmaster@hisdomain.com DocumentRoot /usr/local/www/data/10thFloor ServerName george.hisdomain.com DirectoryIndex george.html ServerAlias www.george.hisdomail.com If you want the same log file just leave the definition at the beginning of http.conf. You still need a cname in your dns for each of the domains. in this case something like. george CNAME virtualserver www.george CNAME virtualserver I, too, hope that I understood the question. saludos, ed > > Hope this makes some sense. Thanks in advance. > > ----------------------------------------------------------------- > Kelsey Cummings > System Administrator > NetEase, Inc. > kc@neteze.com > ----------------------------------------------------------------- > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-isp" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message