php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #16868 wrong $_SERVER['SERVER_NAME' contents
Submitted: 2002-04-27 04:17 UTC Modified: 2002-04-27 06:05 UTC
From: erik at slooff dot net Assigned:
Status: Not a bug Package: Apache related
PHP Version: 4.2.0 OS: SuSE 7.0
Private report: No CVE-ID: None
 [2002-04-27 04:17 UTC] erik at slooff dot net
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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-04-27 06:05 UTC] derick@php.net
Submitted twice > bogus
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun May 05 14:01:31 2024 UTC