WebServer Problems

Associate
Joined
6 Feb 2004
Posts
270
Location
Ballymena
i am trying to run a webpage from my own PC with email & ftp capabilities, The Software i am using is Apache Server Software, MailEnable for Email and Serv-U for FTP. I purchased my domain name and gave the DNS settings i got when i created a Free Account with ZoneEdit but here's my problem, everything runs fine when i type in http://localhost but when i type in the proper URL all it wants to do is log into my Netgear DG834N where it asks for my Username & Password, do i have to change settings with my router? If so what exactly is required?

Many Thanks,

Ryan
 
Try changing the NAT on your router,

So that,
000.000.000.000 (Your external IP)

Points to 111.111.111.102(Internal PC)

Where atm it is probably pointing to 111.111.111.100 (Router)

Hope this helps.

(Ip's are for example only :) )
 
what i did do was create firewall rules in the router to allow access on certain ports and to send it to the IP address of the PC thats setup as the Webserver, now the router login screen doesn't try and come up but nothing comes up on screen, it just says this page cannot be displayed after about 1 minute of trying to load the webpage ?

Any more ideas ?
 
NAT loopback problem. I'm willing to bet that if you gave somebody your external IP and asked them to try it in a browser it would work flawlessly. You need to enable NAT loopback on your router, should fix it. However, not all routers support it; in which case, a good work around (again if your router supports it) is to enable DNS forwarding so that your domain name actually points to the LAN IP of your machine. As a final work around, if that too is not an option, you could do this via your hosts file.

Hope this helps, any questions just ask.

null :)
 
As above ^^

I had the same problem. Users on terminals within your network (i.e. on your "side" of the router) will have to use the IP Address of the webserver (i.e. http://192.168.2.5). If you want it to work with the domain then you will have to edit the hosts file on each terminal to point yourdomain.com to 192.168.2.5. Of course, the trouble with this is that if you are running DHCP on your router, you'll need to edit the hosts file on every terminal every time the IP of the server changes.

HTH

Edit: Ignore me! The almighty NULL has covered ALL of my points. I really should read the whole thread before posting! :o
 
Last edited:
<hijack>
I've just edited the hosts file on my laptop to point a couple of domains to my webserver.
If I try to connect to my server from outside the network, will the hosts file take precidence and try to access the websites using the local IP address I specified?
</hijack>
 
Back
Top Bottom