I'm using Apache/2.4.10 (Win32) and I have a question about the relation between
I have noticed a strange(at least I think) behavior of apache, inside my
httpd.conf I have:
Now as I tested via
PHP server variables which are taken from apache.
From php(the link above):
If the script is running on a virtual host, this will be the value defined for that virtual host.
I'm not using any virtual hosts.
SERVER_NAME overridden by
HTTP_HOST, for example if I will access the website via
SERVER_NAME is overriden by the
HTTP_HOST and the both be equal to the same value, now in spite it has been tested I wanted to know:
- Does apache using any virtual host without me knowing about it, here is my httpd.conf file?
- Is it
PHPor apache behavior?
- Is it done automatically(the override) by
PHPor Apache(at this point I don't know who's guilty)?
- The override is done by apache, I've tested using
.htaccessfile, the result is that even before the variables delivered to
PHPthe override is done.
So the override is done by apache, the only question remain is what are the conditions for such override and more important is there a way to get or a variable that provide the
ServerName value from the