Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi. I decided to set up a web server on my Slackware 10.1 desktop machine just for the learning experience. I downloaded and installed apache then moved the files for my test site to /var/www/htdocs. Then I stated up the http daemon. Now when I visit http://127.0.0.1 in my web browser it displays my site just like it should, everything seemed to be working perfectly.
So then I signed up for a dyndns.org account, created a Dynamic DNS address and assinged it to my current IP address. But when I point my browser to http://mysite.dyndns.org, instead of my site I am presented with my router's configuration page! My router is a BT Voyager 205 if that's any help. Does anyone have an idea as to why this would happen and how to fix it?
What computer are you browsing from?
If you browse from the computer which is running the webserver:
Make sure that the hosts file is set up correctly,
Make sure that your dyndns name is on the same line as 127.0.0.1
If this happens when browsing from another computer (OUTSIDE the router i.e. not on your LAN) an idea might be to check if your router is forwarding port 80 to your computer. This is a bit of a stab in the dark, but it might work.
Tuttle: I really don't know much about Linux networking, is port forwarding a router-specific thing, or is there a general "do this to forward port x" instrucion that works for all routers?
infinity42: 'hosts file'. Is that an Apache config file, or a Linux config file, and where would I find it?
The hosts file is a linux config file, and should be found at /etc/hosts (you will have to be root to edit it). If you don't know how to use vi it can be a pain to use - you could try nano instead. So something like:
Code:
#nano /etc/hosts
When in nano just navigate to the end of the line that starts '127.0.0.1' (use the arrow keys), put a space then 'mysite.dyndns.org' on then end. Press [Ctrl]-[O] to write the file, then [Ctrl]-[x] to exit. That should set up your hosts file.
Now, onto router config. The port forwarding is done by the router - and it differs hugely between routers. Try this page http://www.portforward.com/btvoyager...forwarding.htm
You need to forward port 80 to port 80 on your computer's IP
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.