Bug #16868: wrong $_SERVER['SERVER_NAME' contents
| From: | erik at slooff dot net | Date: | Sat, 27 Apr 2002 08:17:46 +0000 |
| Subject: | Bug #16868: wrong $_SERVER['SERVER_NAME' contents | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-6206@lists.php.net to get a copy of this message | ||
From: erik@slooff.net
Operating system: SuSE 7.0
PHP version: 4.2.0
PHP Bug Type: Apache related
Bug description: wrong $_SERVER['SERVER_NAME' contents
Hi,
It seems that the contents of the var $_SERVER['SERVER_NAME'] is not set
correct. I'm using apache 1.3.23 and PHP 4.2.0 with virtual hosts with
servernames and serveraliases. $_SERVER['SERVER_NAME'] apparantly can also
return the serveralias name instead of the servername, which is not
expected behaviour.
Please check the following urls to see what I mean:
http://broodjekaas.nl/test.php
And
http://www.broodjekaas.nl/test.php
Hope this helps,
Erik
--
Edit bug report at http://bugs.php.net/?id=16868&edit=1
--
Fixed in CVS: http://bugs.php.net/fix.php?id=16868&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=16868&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=16868&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=16868&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=16868&r=support
Expected behavior: http://bugs.php.net/fix.php?id=16868&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=16868&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=16868&r=submittedtwice