From owner-freebsd-questions@FreeBSD.ORG Sat Sep 4 22:35:15 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 240E610656E5 for ; Sat, 4 Sep 2010 22:35:15 +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 CCBF28FC0A for ; Sat, 4 Sep 2010 22:35:14 +0000 (UTC) Received: by qwg5 with SMTP id 5so3217761qwg.13 for ; Sat, 04 Sep 2010 15:35:14 -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=h1KJeyDmTchl/wF/WWeNFV5NkEiNt1CJ0taMbjpwDzY=; b=oJygOc7NPR6JnblRKdAXqxsOdapNY8wRWFtKHEnLRJxfyTz7GCEbDaY6R896g2mAZo HO5gVz5nAiL/rClZhyCmo5u/1wZwKa1RMFcL2cmO+WNoAxY4ruzMEbwOcKaKP/CTjCd9 vgqjzrYKRWB65RSDPtWVWnCAe/HZqWxmFOKsg= 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=V6XTdcyltxW2g/KD70dNTONSF+NIhCIOSnSONaeMLTDKM7VNaeWyDIaxc8ej5HmepM hPHmQaA9+vYX079oo6kyJjyDkeYucv1xxKxBUwLSBJdJWDDB84DtEzzAUXFheSZkJKuK SFAoPVav/f+3wVQrt6lngS1Xpe1z9P8c/GpNs= Received: by 10.224.67.75 with SMTP id q11mr824524qai.289.1283639713546; Sat, 04 Sep 2010 15:35:13 -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 t1sm3744846qcs.45.2010.09.04.15.35.12 (version=SSLv3 cipher=RC4-MD5); Sat, 04 Sep 2010 15:35:12 -0700 (PDT) Message-ID: <4C82C99F.1050003@gmail.com> Date: Sat, 04 Sep 2010 18:35:11 -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> <4C82C95B.5020609@gmail.com> In-Reply-To: <4C82C95B.5020609@gmail.com> 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:35:15 -0000 On 9/4/10 6:34 PM, Glen Barber wrote: > 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. > Oops. Listen 127.0.0.1:80 Too much SSH config-ing for me lately. :) -- Glen Barber