It worked fine for me but I did have to de-activate my personalised .htaccess file.
1. make the changes to your Apache http.conf file?
2. after the changes stop and restart your LOCALHOST server?
3. try the REQUEST_URI instead of REQUEST_URL server variable?
4. check for an alernative server variable in the print_r($_SERVER) list?
If all the above checks are OK then I think you will need a .htacces expert.