httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "William A. Rowe, Jr." <wr...@rowe-clan.net>
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
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.
> <http://us.rd.yahoo.com/mail_us/taglines/postman7/*http://us.rd.yahoo.com/evt=39666/*http://messenger.yahoo.com>

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> 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


Mime
View raw message