since i wanted to run two websites locally on my apache,
i added the virtual host directive to httpd.conf and added
also a line to the hosts file under the windows directory.
All went well, localhost led to one directoy, localhost2 to the other.
But the problem was, that whenever i used $_SERVER['SERVER_NAME']
in a php script, this always got dissolved into 127.0.0.1 and that
ip led always just to one of the folders.
So in the other website, that wasnt targeted by 127.0.0.1,
i can't use $_SERVER['SERVER_NAME'] now.
What can i do?
Any help would be highly appreciated.