Forum Moderators: phranque
It doesn't have a file extension (just 'hosts'). Open it in notepad and after the line that says:
127.0.0.1 localhost
Add your servers ip address, then a space, and then the host header for the site you want to check:
123.123.123.123 www.example.com
Stretch
For example, it might be 123.45.67.89/domain/ or 123.45.67.89/~domain. Of course, the actual directory path will depend on the structure your ISP uses on their server.
You could use your hosts file. If your using windows it's in Windows/system32/drivers/etc/
It doesn't have a file extension (just 'hosts'). Open it in notepad and after the line that says:
127.0.0.1 localhostAdd your servers ip address, then a space, and then the host header for the site you want to check:
123.123.123.123 www.example.com
aaronjf, when I said 'if you're using windows' I didn't mean on the server - I meant on your local machine.
If you're trying to view your sites from a windows machine then you can use the hosts file to bypass DNS.
Try modifying your 'hosts' file as suggested above and you should be able to view your sites, using the correct domain name, just as you want.