From owner-freebsd-questions@FreeBSD.ORG Wed Aug 20 10:11:45 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 11EC416A4BF for ; Wed, 20 Aug 2003 10:11:45 -0700 (PDT) Received: from pd2mo2so.prod.shaw.ca (shawidc-mo1.cg.shawcable.net [24.71.223.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1ECF443FBD for ; Wed, 20 Aug 2003 10:11:44 -0700 (PDT) (envelope-from dfbtech@telus.net) Received: from pd2mr2so.prod.shaw.ca (pd2mr2so-ser.prod.shaw.ca [10.0.141.109])2003))freebsd-questions@freebsd.org; Wed, 20 Aug 2003 11:06:58 -0600 (MDT) Received: from pn2ml5so.prod.shaw.ca (pn2ml5so-qfe0.prod.shaw.ca [10.0.121.149]) by l-daemon (iPlanet Messaging Server 5.2 HotFix 1.16 (built May 14 2003)) with ESMTP id <0HJX00D9NGVMTU@l-daemon> for freebsd-questions@freebsd.org; Wed, 20 Aug 2003 11:06:58 -0600 (MDT) Received: from don ([24.84.174.173])2003)) freebsd-questions@freebsd.org; Wed, 20 Aug 2003 11:06:58 -0600 (MDT) Date: Wed, 20 Aug 2003 10:08:30 -0700 From: Don Buckley In-reply-to: <20030820072334.75195.qmail@web42006.mail.yahoo.com> To: Yusuf UZUNAY Message-id: MIME-version: 1.0 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7BIT Importance: Normal X-Priority: 3 (Normal) X-MSMail-priority: Normal cc: users@httpd.apache.org cc: freebsd-questions@freebsd.org Subject: RE: OT: quick apache question - gethostbyname() X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Aug 2003 17:11:45 -0000 Yusuf! Thank you, that worked. /etc/rc.conf: hostname="fully_qualified_domain_name_of_machine" /etc/hosts: xxx.xxx.xxx.xxx fully_qualified.domain.name www The ServerName directive(s) were already setup in my httpd.conf in the VirtualHosts. Thanks again :) Donder -----Original Message----- From: owner-freebsd-questions@freebsd.org [mailto:owner-freebsd-questions@freebsd.org]On Behalf Of Yusuf UZUNAY Sent: Wednesday, August 20, 2003 12:24 AM To: Don Buckley Cc: freebsd-questions@freebsd.org Subject: Re: OT: quick apache question if don't give hostname in /etc/rc.conf like this hostname="www.xxx.com" and in /etc/hosts add these lines: 127.0.0.1 localhost.xxx.com localhost 1.1.1.1 www.xxx.com www 1.1.1.1 www.xxx.com and last you can do this in httpd.conf file ServerName www.xxx.com Now Reboot Your computer! Byee! ;) --- Don Buckley wrote: > sorry for the OT, but > > I changed ISP's (telus.net to shaw) and my > httpd-error.log is showing and > error: > > mod_unique_id: unable to > gethostbyname("hostname_from_/etc/rc.conf") > > There's a tweak somewhere for this but i forget > where :P > > Thanks > > Don@dfbtech.com > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" __________________________________ Do you Yahoo!? The New Yahoo! Search - Faster. Easier. Bingo. http://search.yahoo.com _______________________________________________ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"