From owner-freebsd-questions@FreeBSD.ORG Sat Sep 4 22:34:08 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6344610656B4 for ; Sat, 4 Sep 2010 22:34:08 +0000 (UTC) (envelope-from glen.j.barber@gmail.com) Received: from mail-qw0-f54.google.com (mail-qw0-f54.google.com [209.85.216.54]) by mx1.freebsd.org (Postfix) with ESMTP id 15E628FC16 for ; Sat, 4 Sep 2010 22:34:07 +0000 (UTC) Received: by qwg5 with SMTP id 5so3217331qwg.13 for ; Sat, 04 Sep 2010 15:34:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :x-enigmail-version:content-type:content-transfer-encoding; bh=fpOPElvqP1OXimZmtLxmoXKWtXYg+de/5H6AytQu4JM=; b=cmlyMVAal/unTQE3jUXPhRJNgdOgTI/WMjyl4UQkFPHrVhWfhHYCKSwgEdAXK/E8Gi aFIKE4AWTVDBr0zTyCXXtCl/QG44fdSrtiELgCQVVEUYAnZWfV5PjQ+X6qnFs+DG1nJt Bxoh/MYEavduMPDBqFdslZX0P6RvTb8HbXV88= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:x-enigmail-version:content-type :content-transfer-encoding; b=M2rriC/n9omvTu8ep77/pwrM64hh/YHwIJT+/+PHeJS70eYQuUDRL4KHJWu/sKZMCr iPBlQ7f2qK69G660bLrD99yePh7NiXr0+gjSCTH/Y5XH0dO4s49jGBAgt/9G828oS0vK AoRKcX7iZm2Yswo0CD8t9K6x+Kf3zF0dQjyPM= Received: by 10.229.52.8 with SMTP id f8mr1607292qcg.286.1283639646844; Sat, 04 Sep 2010 15:34:06 -0700 (PDT) Received: from schism.local (75.97.128.170.res-cmts.sewb.ptd.net [75.97.128.170]) by mx.google.com with ESMTPS id r38sm3757888qcs.2.2010.09.04.15.34.04 (version=SSLv3 cipher=RC4-MD5); Sat, 04 Sep 2010 15:34:04 -0700 (PDT) Message-ID: <4C82C95B.5020609@gmail.com> Date: Sat, 04 Sep 2010 18:34:03 -0400 From: Glen Barber User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.8) Gecko/20100802 Thunderbird/3.1.2 MIME-Version: 1.0 To: Jim Pazarena References: <4C82C13B.7080108@paz.bz> In-Reply-To: <4C82C13B.7080108@paz.bz> X-Enigmail-Version: 1.1.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: proper way to setup laptop with apache22 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 04 Sep 2010 22:34:08 -0000 On 9/4/10 5:59 PM, Jim Pazarena wrote: > I'm setting up a laptop with apache, just to play, basically. > > But apache doesn't like the fact that it can't resolve the > lappy's hostname to an IP number and it will not load. The laptop > gets its IP # via DHCP so it changes at various locations. > > I could use the localhost name & IP #, which should work. > > My laptop is named 'laptop' (laptop.mydomain.com) > > Is there a way to have the system utilize it's assigned IP #? > Or do I have to change my apache config to "localhost" ? > Hi, You can enter (assuming 'lappy' is the hostname): 127.0.0.1 localhost lappy in /etc/hosts and set the ListenAddress directive in Apache to bind to that IP. Regards, -- Glen Barber