Bug 44614 - ServerAlias/ServerName broken?
Summary: ServerAlias/ServerName broken?
Status: RESOLVED INVALID
Alias: None
Product: Apache httpd-2
Classification: Unclassified
Component: All (show other bugs)
Version: 2.2.8
Hardware: PC Windows XP
: P2 normal (vote)
Target Milestone: ---
Assignee: Apache HTTPD Bugs Mailing List
URL: http://www.world.net
Keywords:
Depends on:
Blocks:
 
Reported: 2008-03-16 23:31 UTC by Sherman
Modified: 2008-03-17 09:04 UTC (History)
1 user (show)



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sherman 2008-03-16 23:31:01 UTC
Hi,
I'm not sure who I should talk to PHP or Apache, after I upgrade apache-2.2.8 from apache 1.3.37, I found both php variable $SERVER_NAME and $HTTP_HOST were return the same value, unlike I found on apache 1.3.37.

my web host setup as follow
<VirtualHost xxxx :80>
DocumentRoot /path/to/WebRoot
ServerName    aaa.bbb.ccc
ServerAlias   xxx.yyy.zzz
</VirtualHost>

on apache 1.3.37
if I browse xxx.yyy.zzz, I have the following values on those 2 the php variables
$SERVER_NAME = aaa.bbb.ccc
$HTTP_HOST = xxx.yyy.zzz

however on apache 2.2.8, I got 
$SERVER_NAME = xxx.yyy.zzz, i was expect aaa.bbb.ccc to be return
$HTTP_HOST = xxx.yyy.zzz


Could you let me know what should I go to get apache 2.2.8 behavior same as apache 1.3.x or should I forward this issue to php.

Thanks
Sherman
Comment 1 Joshua Slive 2008-03-17 09:04:24 UTC
If you're not sure you have found a bug, please start with a user-support forum for questions like these.

Hint: look at the documentation for UseCanonicalName.