Mandrake 9.2, hosting web page behind router on dynamic ip
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.
Mandrake 9.2, hosting web page behind router on dynamic ip
Hi, not sure where to start with this... I have an ADSL Router with a dynamic IP address. Behind it sits the LAN. On the LAN I have one server from which I would like to serve web pages. I have configured NAT on the router to forward port 80 to the internal server address. I have also registered a domain name from no-ip.com and running their program on the server to update their DNS with my new IP address. I can now connect to my web server from the Internet by using the domain name.
The problem that I am having is that I have also configured Apache to serve pages from each user's directory, and when somebody tries to access ie: mydomain.com/~user the page is served but the address bar in the browser changes to 127.0.0.1/~user . Is it possible to configure the server somehow so that both the computer and Apache know they are on a domain (ie mydomain.com), so that the address bar in browsers always displays mydomain.com/blah/blah.
Hi,
Make sure that you have a line in your httpd.conf file that looks like this
ServerName server.name.com:80
Also check if it exhibits this same behavior when connecting from a computer that is not on your local network.
I did change the ServerName in the conf file and it now works. Thank you.
I do have virtual hosting enabled. I have another question - If I wanted to set another domain name to point to my /home/username/www directory what would the syntax be. I had a look at the virtual hosting options but not sure how to change them to map a different domain to a user's directory, not to some directory in /var/www/html
-When you make one virtual host, the main server seems to be ignored (so you have to make a virtual host directive for each domain.
-VirtualHosts seems to be treated in order in the file.
Thanks,
that's the problem I had when configuring virtual hosts. I included another virtual host for the original server and now I can use to domains on different directories.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.