Stange Global Variable problem
Posted: Sun Aug 16, 2009 8:38 am
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?
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?