View Single Post
  #15  
Old 18th September 2007, 18:04
catdude catdude is offline
Senior Member
 
Join Date: Jun 2007
Posts: 178
Thanks: 1
Thanked 12 Times in 11 Posts
Default

Quote:
Originally Posted by showe1966
The above is all fine and it looks like FINALLY i am getting somewheres.
HOWEVER I NOW RUN INTO THE FOLLOWING "GOTTCHA"
-I did not transfer my real domain name over to my new website yet as it is in use somewheres else.
-Therefore, to check that the website is really up, I type in my ip address in my browser BUT because I had to use the same ip address, host and domain names twice (Once in server settings and once to set up my clients website), I only can get to a page saying
"welcome, this IP address is shared. Please login to www.mysite.dom to see the website you are looking for."

My questions are:-

1. Is this normal ?
2. Can I get around the problem ?
I think I possibly can by using a terminal based web browser on my server like lynx and point it to 127.0.0.1 and see what I reach.

Any comments about resolving this technical difficulty would be most appreciated.
Yep, that behavior is normal. Here's how you can get around that problem for testing:

If you are running a real OS (Linux, Solaris, FreeBSD, OS X, etc) edit your /etc/hosts file. Specifically, on the line that starts with your IP address, add "yourdomain.com" and "www.yourdomain.com". If you're stuck with running a video-game OS (a flavor of Windows), then do the same in /windows/system/drivers/etc/hosts (or something like that - I can never remember exactly where the file is, as I never use Wintendo any more).

That way when you attempt to surf to yourdomain.com or www.yourdomain.com, your machine will resolve the address out of your local hosts file instead of via DNS. This assumes, of course, that your nsswitch.conf file is set up to prefer "files" over other methods.
Reply With Quote