From owner-freebsd-newbies@FreeBSD.ORG Mon Feb 21 12:50:12 2005 Return-Path: Delivered-To: freebsd-newbies@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 39A9C16A4CF for ; Mon, 21 Feb 2005 12:50:12 +0000 (GMT) Received: from ptb-relay03.plus.net (ptb-relay03.plus.net [212.159.14.214]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8202343D1D for ; Mon, 21 Feb 2005 12:50:11 +0000 (GMT) (envelope-from ml-freebsd-newbies@codepad.net) Received: from [80.229.159.44] (helo=hercules.codepad.net) by ptb-relay03.plus.net with esmtp (Exim) id 1D3CxK-000L0K-Ik for freebsd-newbies@freebsd.org; Mon, 21 Feb 2005 12:46:30 +0000 From: Xian To: freebsd-newbies@freebsd.org Date: Mon, 21 Feb 2005 12:45:40 +0000 User-Agent: KMail/1.7 References: <20050218175250.21997.h002.c009.wm@mail.canada.com.criticalpath.net> In-Reply-To: <20050218175250.21997.h002.c009.wm@mail.canada.com.criticalpath.net> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200502211245.40597.ml-freebsd-newbies@codepad.net> Subject: Re: freebsd-newbies help.... X-BeenThere: freebsd-newbies@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Gathering place for new users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Feb 2005 12:50:12 -0000 On Saturday 19 February 2005 01:52, sannsb@canada.com wrote: > On Fri, 18 Feb 2005 12:01:05 +0000 (GMT), > > freebsd-newbies-request@freebsd.org wrote: > > I am new at freeBSD, I'always self taught at a lot of > > things. I've gotten freeBSD 5.2 and 5.3 to do alot of > things. I just can't figure out how to set up a primary > DNS and to get apache to use the proper name > i.e.www.nnnn.com. > I've read a lot of text on the website but still > not clear. > Rod. A couple of options that might be useful for apache, here is a snippet from my httpd.conf # ServerName gives the name and port that the server uses to identify itself. # This can often be determined automatically, but we recommend you specify # it explicitly to prevent problems during startup. # # If this is not set to valid DNS name for your host, server-generated # redirections will not work. See also the UseCanonicalName directive. # # If your host doesn't have a registered DNS name, enter its IP address here. # You will have to access it by its address anyway, and this will make # redirections work in a sensible way. # ServerName home.codepad.net # # UseCanonicalName: Determines how Apache constructs self-referencing # URLs and the SERVER_NAME and SERVER_PORT variables. # When set "Off", Apache will use the Hostname and Port supplied # by the client. When set "On", Apache will use the value of the # ServerName directive. # UseCanonicalName Off -- /Xian "Anyone who has never made a mistake has never tried anything new." Albert Einstein