Saturday, October 24, 2009

Unable to view my web site hosted on my PC using my "www.mydomain.xxx" name??

I am setting up a web page on my home PC running windows xp pro and the built-in IIS server or apache http server. I have to use port 8080 (http alternate) as my ISP told me that they block port 80. I have the web server listening on 8080 and router setup for port forwarding to my PC on 8080 as well. Everyone can see my pages with no problem from the outside (Internet or WAN) but when I type in my web site address from the same computer (web server) I am unable to view my web site. The error I get is %26quot;cannot find server%26quot; %26quot;The page you are looking for is currently unavailable. The Web site might be experiencing technical difficulties, or you may need to adjust your browser settings.%26quot;



I can get to my site if I use http://localhost:8080 but I want to be able to use my internet name... Thanks in advance..



Unable to view my web site hosted on my PC using my %26quot;www.mydomain.xxx%26quot; name??





What you need to do is open the file %26quot;C: \ WINDOWS \ system32 \ drivers \ etc \ hosts%26quot; in Notepad or any editor. You will see the line:



127.0.0.1 localhost



Underneath this, add another entry with 127.0.0.1 and your mydomain.xxx. Use the localhost one as a guide. If http://localhost:8080 works, and you want http://xyz:8080 to work, add the line:



127.0.0.1 xyz



Once you do this, it should work.



(sorry I had to put spaces in the path, it didn%26#039;t look right otherwise because it changed the \ to the hex value)

No comments:

Post a Comment

Blog Archive