From owner-freebsd-questions Fri Apr 12 12:44:40 2002 Delivered-To: freebsd-questions@freebsd.org Received: from sage-one.net (adsl-64-219-21-153.dsl.crchtx.swbell.net [64.219.21.153]) by hub.freebsd.org (Postfix) with ESMTP id 1EA1337B404 for <freebsd-questions@FreeBSD.ORG>; Fri, 12 Apr 2002 12:44:30 -0700 (PDT) Received: from SAGEONE (sageone [192.168.0.5]) by sage-one.net (8.11.6/8.11.6) with SMTP id g3CJiSK39528; Fri, 12 Apr 2002 14:44:28 -0500 (CDT) (envelope-from admin@sage-one.net) Message-Id: <3.0.5.32.20020412144436.02e4f930@mail.sage-one.net> X-Sender: admin@mail.sage-one.net X-Mailer: QUALCOMM Windows Eudora Pro Version 3.0.5 (32) Date: Fri, 12 Apr 2002 14:44:36 -0500 To: "Kennebunk Mailing List" <brentb@loa.com>, <freebsd-questions@FreeBSD.ORG> From: Server Admin <admin@sage-one.net> Subject: Re: virtual hosting with apache In-Reply-To: <00b101c1e258$ca6e24e0$37b4a8c0@pretorian> References: <3.0.5.32.20020412140511.02dffcd0@mail.sage-one.net> <3.0.5.32.20020412142517.02e4f930@mail.sage-one.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: <freebsd-questions.FreeBSD.ORG> List-Archive: <http://docs.freebsd.org/mail/> (Web Archive) List-Help: <mailto:majordomo@FreeBSD.ORG?subject=help> (List Instructions) List-Subscribe: <mailto:majordomo@FreeBSD.ORG?subject=subscribe%20freebsd-questions> List-Unsubscribe: <mailto:majordomo@FreeBSD.ORG?subject=unsubscribe%20freebsd-questions> X-Loop: FreeBSD.ORG Just do this: # touch /etc/local-host-names # echo myvhost.domain > local-host-names # echo mail.myvhost.domain >> local-host-names It's a simple flat file with one entry per line.... At 03:32 PM 4.12.2002 -0400, Kennebunk Mailing List wrote: >can ya give me an example of the "local-host-names" ????? > >please ?? > >thanx Brent >----- Original Message ----- >From: "Server Admin" <admin@sage-one.net> >To: "Kennebunk Mailing List" <brentb@loa.com>; ><freebsd-questions@FreeBSD.ORG> >Sent: Friday, April 12, 2002 3:25 PM >Subject: Re: virtual hosting with apache > > >> At 03:14 PM 4.12.2002 -0400, Kennebunk Mailing List wrote: >> >ok...kewl ... thats working ...thanx :-) ..now my problem is this . Im >also >> >runnign sendmail (newest version) >> >i added my new customer to >> >/etc/mail/virusertable >> > @newcustomer.biz newcustomer >> > >> >then did >> >makemap hash virtusertable.db < virtusertable >> > >> >so that the new customer can send and recieve mail thru his domain >> >and HUPed sendmail.. >> >but he cant send or recieve mail from his domain yet .. is there anuthing >i >> >have to do to >> >/etc/mail/sendmail.cf >> > >> >to use virtusertable ?? >> > >> >any help is VERY appreciated >> > >> >Brent >> > >> >----- Original Message ----- >> >From: "Server Admin" <admin@sage-one.net> >> >To: "Kennebunk Mailing List" <brentb@loa.com>; >> ><freebsd-questions@FreeBSD.ORG> >> >Sent: Friday, April 12, 2002 3:05 PM >> >Subject: Re: virtual hosting with apache >> > >> > >> >> At 02:22 PM 4.12.2002 -0400, Kennebunk Mailing List wrote: >> >> >Im running FBSD 4.3 w/ apache, mysql , php etc...Ive pretty much set >the >> >> >box up to do virtual hosting . I have 1 static ip addres and im >> >currently >> >> >virtually hosting my own domain. Im also authoritive DNS for my >domain, >> >> >anyway .. >> >> > >> >> >I want to set my new customer up ..he has already has had his DNS >changed >> >to >> >> >me ( so i will be hosting his DNS as well as virtual webhosting) below >is >> >te >> >> >virtual container i made for his domain ...question is does it look >> >correct >> >> >?? ( this is my first time trying this.) >> >> >any help is VERY appreciated.. >> >> > >> >> ><VirtualHost *> >> >> > ServerAdmin webmaster@bmyster.com >> >> > ServerAlias newcustomer.biz *.newcustomer.biz >> >> > DocumentRoot /user2/newcustomer/public_html >> >> > ServerName newcustomer.biz >> >> > ErrorLog /var/log/newcustomer-error >> >> > CustomLog /var/log/newcustomer combined >> >> ></VirtualHost> >> >> > >> >> >thanx >> >> >Brent >> >> > >> >> > >> >> >To Unsubscribe: send mail to majordomo@FreeBSD.org >> >> >with "unsubscribe freebsd-questions" in the body of the message >> >> > >> >> > >> >> Brent: Best answer I can give is that here is my setup that works fine, >> >> including CGI & logs: >> >> >> >> # VirtualHost www.myvhost.com >> >> <VirtualHost *> >> >> ServerName www.myvhost.com >> >> ServerAlias myvhost.com >> >> ServerAdmin webmaster@myvhost.com >> >> DocumentRoot /usr/local/www/myvhost >> >> ScriptAlias /cgi-bin/ /usr/local/www/myvhost/cgi-bin/ >> >> TransferLog /usr/local/www/myvhost/logs/access.log >> >> ErrorLog /usr/local/www/myvhost/logs/error.log >> >> LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" >\"%{User-Agent}i\"" >> >> combined >> >> </VirtualHost> >> >> >> >> .... our website: http://www.sage-one.net/ >> >> >> >> Best regards, >> >> >> >> Jack L. Stone >> >> Server Admin >> >> >> >> 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 >> > >> >> I one more item: don't forget to add the domains to local-host-names, both >> domain.com and mail.domain.com for example. Below is a check list.... >> >> SET UP MAIL >> Add domain to: >> adduser >> virtusertable >> local-host-names >> access >> relay-domains >> restart sendmail daemon >> >> .... our website: http://www.sage-one.net/ >> >> Best regards, >> >> Jack L. Stone >> Server Admin >> >> To Unsubscribe: send mail to majordomo@FreeBSD.org >> with "unsubscribe freebsd-questions" in the body of the message > > > .... our website: http://www.sage-one.net/ Best regards, Jack L. Stone Server Admin To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message