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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: erik at slooff dot net
New email:
PHP Version: OS:

 

 [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

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-04-27 06:05 UTC] derick@php.net
Submitted twice > bogus
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Mon Jun 02 17:01:26 2025 UTC