My PHP app is not working because of $_SERVER[\'REQUEST_URI\'] returns the full url to the script instead of a relative path.
My environment: Wind
Had the same issue recently, My solution: Firstly check if your http://localhost has the same effect.(which i see i didn't) If not then added your virtual host(domains) to /etc/host file.
Hope this is helpful.