httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "William A. Rowe, Jr." <>
Subject Re: [users@httpd] How do I determine my server's name?
Date Fri, 01 Sep 2006 00:15:22 GMT
What a silly app... the right test is to see if the request came in through (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 <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message