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.
I have a home network with 2 Ubuntu LAMPS Servers 11.04, 1 Ubuntu 11.04 with gui. I am playing / learning PHP and Mysql, as well as server administration.
Currently I have to type in "192.168.0.2/firstphp" to get to the first php/html page I wrote. I am trying to set up my server on static ip 192.168.0.2 so I can type "myphpsite,com/firstphp" to view that page.
I have read on Bind9 in the Ubuntu Server Guide. I am unsure that it is the right way. I do not want my boxes on the net, only local.
You don't need a DNS server to do that. You can modify your /etc/hosts file to include a line like the following:
127.0.0.1 myphpsite.com
That will point requests for myphpsite.com to your local Apache install. If you wish to get to an Apache install on a different box, include something like this:
I tried that. I have a problem. There is an actual site on the net, "myphpsite.com" my web browser tries to go there. I will reconfigure apache and hosts file to a name not on the net and try it.
Afraid to mess with my windows 7 laptop.
I moved to Ubuntu 11.04 desktop, IP address192.168.0.25, assigned DHCP from DSL modem/router.
Added "192.168.0.2 bphpsite.com",without the quotes......
Typed "bphpsite.com/firstphp" into browser address bar..... still went to the net, not to my LAMPS box.
Typed "192.168.0.2/firstphp" into browser address bar.... went to LAMPS box....
My resolv.conf and host.conf are in previous posts....
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.