Hi gang,
I'm trying to locally test a site that uses $_SERVER["SERVER_NAME"] to interpret which information to send. I didn't write the site, but I need to make some simple tweaks to the CSS.
I've been told to use Linux's /etc/hosts file redirect www.websitename to localhost. The problem is, I can't afford to store the site at http://localhost/ or http://127.0.0.1/ - there are a bunch of other sites I need quick access to. When I try to add
http://127.0.0.1/websitename www.websitename.com
to my etc/hosts file, it seems to ignore the line.
Any suggestions? Is there a way to specify directories in /etc/hosts, or any other way to solve this problem?
Ubuntu 8.10, Apache 2.2
Any suggestions most appreciated.
Cheers,
- SuperGrover
Bookmarks