Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 61909 invoked from network); 1 Sep 2006 00:16:36 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 1 Sep 2006 00:16:36 -0000 Received: (qmail 82682 invoked by uid 500); 1 Sep 2006 00:16:27 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 82672 invoked by uid 500); 1 Sep 2006 00:16:27 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 82661 invoked by uid 99); 1 Sep 2006 00:16:27 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 31 Aug 2006 17:16:27 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [207.155.252.14] (HELO wellington.cnchost.com) (207.155.252.14) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 31 Aug 2006 17:16:26 -0700 Received: from [192.168.0.21] (c-24-15-193-17.hsd1.il.comcast.net [24.15.193.17]) (as wrowe@rowe-clan.net) by wellington.cnchost.com (ConcentricHost(2.54) Relay) with ESMTP id 95AF081346 for ; Thu, 31 Aug 2006 20:15:51 -0400 (EDT) Message-ID: <44F77B9A.2040204@rowe-clan.net> Date: Thu, 31 Aug 2006 19:15:22 -0500 From: "William A. Rowe, Jr." User-Agent: Thunderbird 1.5.0.5 (X11/20060808) MIME-Version: 1.0 To: users@httpd.apache.org References: <20060831232611.71690.qmail@web60416.mail.yahoo.com> In-Reply-To: <20060831232611.71690.qmail@web60416.mail.yahoo.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org Subject: Re: [users@httpd] How do I determine my server's name? X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N What a silly app... the right test is to see if the request came in through 127.0.0.1 (al la localhost loopback) and distrust the rest :) ipconfig should tell you your IP, maybe your name on win32. Try ifconfig on Mac. Then nslookup {your ip} to see if it is known, otherwise your server's 'name' is really it's IP. David Blomstrom wrote: > This is probably a dumb question, but how do I determine the name of my > server (local and online)? I have a PHP script that's supposed to modify > a value depending on whether a file is online or local, and it requires > the name of my local server. I'm using Apache in both my PC and my Apple > laptop, but I wasn't aware that my local server had a name. > > Thanks. > > ------------------------------------------------------------------------ > Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. Great > rates starting at 1ยข/min. > --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See for more info. To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org " from the digest: users-digest-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org