I am recently facing a strange problem. I have setup apache 2.2 in centOS with php 5.1.6. The ip of the box is 198.100.100.17 and the hostname is myserver. The Server Name, I have specified in httpd.conf is "mysite".
If I try to access the site by the setvername ie. http://mysite, it will not display the $PHP_AUTH_USER & $PHP_AUTH_PW values, but if I use http://198.100.100.17, it shows both the values. I must have done something wrong in some confif file.
Can anyone help me?
Stange Global Variable problem
Moderator: General Moderators
-
dev_silent
- Forum Newbie
- Posts: 3
- Joined: Tue May 05, 2009 7:01 am
Re: Stange Global Variable problem
-
dev_silent
- Forum Newbie
- Posts: 3
- Joined: Tue May 05, 2009 7:01 am
Re: Stange Global Variable problem
I can access the page by both http://mysite/testpage.php and http://198.100.100.17/testpage.php but in first case $_SERVER['PHP_AUTH_USER'] & $_SERVER['PHP_AUTH_PW'] values are not available but second case it is available.
Strange?
Strange?