Bug #16867 Updated: wrong $_SERVER['SERVER_NAME'] contents

2002-04-29 Thread sniper

 ID:   16867
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
-Status:   Open
+Status:   Bogus
 Bug Type: Apache related
 Operating System: SuSE 7.0
 PHP Version:  4.2.0
 New Comment:

As I mentioned before, PHP does only set these to whatever
Apache 'tells' them to be. So it's not PHP bug.



Previous Comments:


[2002-04-29 02:37:55] [EMAIL PROTECTED]

Hi,

I just checked and $_SERVER['HTTP_HOST'] returns the same value as
$_SERVER['SERVER_NAME']; the value of either "servername" of
"serveralias" depending on the url. Somehow these should show the value
as defined in the apache directive "servername" for the virtualhost you
are using, at least that is what I would expect after reading the
docs.

Maybe it's a bug in apache 1.3.23?

Erik



[2002-04-28 20:27:54] [EMAIL PROTECTED]

PHP sets these to whatever Apache tells they are..
And do you mean with hostname this: $_SERVER['HTTP_HOST'] ?

--Jani




[2002-04-28 05:05:24] [EMAIL PROTECTED]

One thing I would like to add is that in phpinfo() in the apache
section the value Hostname:Port is set correct.

Bye,

Erik



[2002-04-28 04:57:09] [EMAIL PROTECTED]

Hi,

Well, according to Nick Lindridge developer of PHP-accelerator it
should give the name as defined in "servername" for the corresponding
virtualhost (he uses this value for his software keys per virtual
domain). Also phpinfo() gives the wrong (?) information.

If you read the PHP manual where it says "'SERVER_NAME', the name of
the server host under which the current script is executing. If the
script is running on a virtual host, this will be the value defined for
that virtual host.", you would expect that the value of "servername"
would be returned.

I also do not know if this would be a bug in PHP or in apache.

Bye,

Erik



[2002-04-27 21:11:59] [EMAIL PROTECTED]

What exactly are you expecting it to be? 
Please look in the phpinfo() output, especially the Apache
sections. 

--Jani




The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/16867

-- 
Edit this bug report at http://bugs.php.net/?id=16867&edit=1




Bug #16867 Updated: wrong $_SERVER['SERVER_NAME'] contents

2002-04-29 Thread erik

 ID:   16867
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
 Status:   Bogus
 Bug Type: Apache related
 Operating System: SuSE 7.0
 PHP Version:  4.2.0
 New Comment:

Hi,

I'll report this to the apache developers. Thanks for all the help,

Erik


Previous Comments:


[2002-04-29 15:27:22] [EMAIL PROTECTED]

As I mentioned before, PHP does only set these to whatever
Apache 'tells' them to be. So it's not PHP bug.




[2002-04-29 02:37:55] [EMAIL PROTECTED]

Hi,

I just checked and $_SERVER['HTTP_HOST'] returns the same value as
$_SERVER['SERVER_NAME']; the value of either "servername" of
"serveralias" depending on the url. Somehow these should show the value
as defined in the apache directive "servername" for the virtualhost you
are using, at least that is what I would expect after reading the
docs.

Maybe it's a bug in apache 1.3.23?

Erik



[2002-04-28 20:27:54] [EMAIL PROTECTED]

PHP sets these to whatever Apache tells they are..
And do you mean with hostname this: $_SERVER['HTTP_HOST'] ?

--Jani




[2002-04-28 05:05:24] [EMAIL PROTECTED]

One thing I would like to add is that in phpinfo() in the apache
section the value Hostname:Port is set correct.

Bye,

Erik



[2002-04-28 04:57:09] [EMAIL PROTECTED]

Hi,

Well, according to Nick Lindridge developer of PHP-accelerator it
should give the name as defined in "servername" for the corresponding
virtualhost (he uses this value for his software keys per virtual
domain). Also phpinfo() gives the wrong (?) information.

If you read the PHP manual where it says "'SERVER_NAME', the name of
the server host under which the current script is executing. If the
script is running on a virtual host, this will be the value defined for
that virtual host.", you would expect that the value of "servername"
would be returned.

I also do not know if this would be a bug in PHP or in apache.

Bye,

Erik



The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/16867

-- 
Edit this bug report at http://bugs.php.net/?id=16867&edit=1




Bug #16867 Updated: wrong $_SERVER['SERVER_NAME'] contents

2002-04-28 Thread erik

 ID:   16867
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
-Status:   Feedback
+Status:   Open
 Bug Type: Apache related
 Operating System: SuSE 7.0
 PHP Version:  4.2.0
 New Comment:

Hi,

I just checked and $_SERVER['HTTP_HOST'] returns the same value as
$_SERVER['SERVER_NAME']; the value of either "servername" of
"serveralias" depending on the url. Somehow these should show the value
as defined in the apache directive "servername" for the virtualhost you
are using, at least that is what I would expect after reading the
docs.

Maybe it's a bug in apache 1.3.23?

Erik


Previous Comments:


[2002-04-28 20:27:54] [EMAIL PROTECTED]

PHP sets these to whatever Apache tells they are..
And do you mean with hostname this: $_SERVER['HTTP_HOST'] ?

--Jani




[2002-04-28 05:05:24] [EMAIL PROTECTED]

One thing I would like to add is that in phpinfo() in the apache
section the value Hostname:Port is set correct.

Bye,

Erik



[2002-04-28 04:57:09] [EMAIL PROTECTED]

Hi,

Well, according to Nick Lindridge developer of PHP-accelerator it
should give the name as defined in "servername" for the corresponding
virtualhost (he uses this value for his software keys per virtual
domain). Also phpinfo() gives the wrong (?) information.

If you read the PHP manual where it says "'SERVER_NAME', the name of
the server host under which the current script is executing. If the
script is running on a virtual host, this will be the value defined for
that virtual host.", you would expect that the value of "servername"
would be returned.

I also do not know if this would be a bug in PHP or in apache.

Bye,

Erik



[2002-04-27 21:11:59] [EMAIL PROTECTED]

What exactly are you expecting it to be? 
Please look in the phpinfo() output, especially the Apache
sections. 

--Jani




[2002-04-27 04:17:35] [EMAIL PROTECTED]

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 this bug report at http://bugs.php.net/?id=16867&edit=1




Bug #16867 Updated: wrong $_SERVER['SERVER_NAME'] contents

2002-04-28 Thread sniper

 ID:   16867
 Updated by:   [EMAIL PROTECTED]
-Summary:  wrong $_SERVER['SERVER_NAME' contents
 Reported By:  [EMAIL PROTECTED]
-Status:   Open
+Status:   Feedback
 Bug Type: Apache related
 Operating System: SuSE 7.0
 PHP Version:  4.2.0
 New Comment:

PHP sets these to whatever Apache tells they are..
And do you mean with hostname this: $_SERVER['HTTP_HOST'] ?

--Jani



Previous Comments:


[2002-04-28 05:05:24] [EMAIL PROTECTED]

One thing I would like to add is that in phpinfo() in the apache
section the value Hostname:Port is set correct.

Bye,

Erik



[2002-04-28 04:57:09] [EMAIL PROTECTED]

Hi,

Well, according to Nick Lindridge developer of PHP-accelerator it
should give the name as defined in "servername" for the corresponding
virtualhost (he uses this value for his software keys per virtual
domain). Also phpinfo() gives the wrong (?) information.

If you read the PHP manual where it says "'SERVER_NAME', the name of
the server host under which the current script is executing. If the
script is running on a virtual host, this will be the value defined for
that virtual host.", you would expect that the value of "servername"
would be returned.

I also do not know if this would be a bug in PHP or in apache.

Bye,

Erik



[2002-04-27 21:11:59] [EMAIL PROTECTED]

What exactly are you expecting it to be? 
Please look in the phpinfo() output, especially the Apache
sections. 

--Jani




[2002-04-27 04:17:35] [EMAIL PROTECTED]

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 this bug report at http://bugs.php.net/?id=16867&edit=1




Bug #16867 Updated: wrong $_SERVER['SERVER_NAME' contents

2002-04-28 Thread erik

 ID:   16867
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
 Status:   Open
 Bug Type: Apache related
 Operating System: SuSE 7.0
 PHP Version:  4.2.0
 New Comment:

One thing I would like to add is that in phpinfo() in the apache
section the value Hostname:Port is set correct.

Bye,

Erik


Previous Comments:


[2002-04-28 04:57:09] [EMAIL PROTECTED]

Hi,

Well, according to Nick Lindridge developer of PHP-accelerator it
should give the name as defined in "servername" for the corresponding
virtualhost (he uses this value for his software keys per virtual
domain). Also phpinfo() gives the wrong (?) information.

If you read the PHP manual where it says "'SERVER_NAME', the name of
the server host under which the current script is executing. If the
script is running on a virtual host, this will be the value defined for
that virtual host.", you would expect that the value of "servername"
would be returned.

I also do not know if this would be a bug in PHP or in apache.

Bye,

Erik



[2002-04-27 21:11:59] [EMAIL PROTECTED]

What exactly are you expecting it to be? 
Please look in the phpinfo() output, especially the Apache
sections. 

--Jani




[2002-04-27 04:17:35] [EMAIL PROTECTED]

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 this bug report at http://bugs.php.net/?id=16867&edit=1




Bug #16867 Updated: wrong $_SERVER['SERVER_NAME' contents

2002-04-28 Thread erik

 ID:   16867
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
-Status:   Feedback
+Status:   Open
 Bug Type: Apache related
 Operating System: SuSE 7.0
 PHP Version:  4.2.0
 New Comment:

Hi,

Well, according to Nick Lindridge developer of PHP-accelerator it
should give the name as defined in "servername" for the corresponding
virtualhost (he uses this value for his software keys per virtual
domain). Also phpinfo() gives the wrong (?) information.

If you read the PHP manual where it says "'SERVER_NAME', the name of
the server host under which the current script is executing. If the
script is running on a virtual host, this will be the value defined for
that virtual host.", you would expect that the value of "servername"
would be returned.

I also do not know if this would be a bug in PHP or in apache.

Bye,

Erik


Previous Comments:


[2002-04-27 21:11:59] [EMAIL PROTECTED]

What exactly are you expecting it to be? 
Please look in the phpinfo() output, especially the Apache
sections. 

--Jani




[2002-04-27 04:17:35] [EMAIL PROTECTED]

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 this bug report at http://bugs.php.net/?id=16867&edit=1




Bug #16867 Updated: wrong $_SERVER['SERVER_NAME' contents

2002-04-27 Thread sniper

 ID:   16867
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
-Status:   Open
+Status:   Feedback
 Bug Type: Apache related
 Operating System: SuSE 7.0
 PHP Version:  4.2.0
 New Comment:

What exactly are you expecting it to be? 
Please look in the phpinfo() output, especially the Apache
sections. 

--Jani



Previous Comments:


[2002-04-27 04:17:35] [EMAIL PROTECTED]

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 this bug report at http://bugs.php.net/?id=16867&edit=1