Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
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.
SDN 101: An Introduction to Software Defined Networking
Discover the advantages of SDN.
SDN has quickly become one of the hottest trends in IT. But not all SDN solutions offer real software-defined functionality. As more enterprises consider SDN, they want to know, “What is SDN? And what are the real benefits?” If you're ready to explore the advantages of SDN, and want to know how it should be implemented within your enterprise, start by reading our introductory white paper.
Click Here to receive this Complete Guide absolutely free.
Hello All, I'm sure this question has been asked before but please bear with me, I've set up a very basic web site on my home pc, the OS is Fedora Core 2 and the web server Apache, as I have a dynamic ip I use dyndns.org to map my ip to mysite.homelinux.com, all this works fine. What I would like to do is set up another site on the same server. I've looked at virtual hosts but I confess I don't really understand them.
For example ( these are fictitious domain names ) my site at the moment is accessed thus "peters-site.homelinux.com", if I created a virtual host called "peters-newsite.com", how would I access it from the web ? would it become "peters-newsite.com.peters-site.homelinux.com" ?, as you can tell I need help, all help gratefully received
say in the dns system there's two domain names that point to the same ip, like in your example the domain names peters-site.homelinux.com and peters-newsite.com, point to your ip.
so when you ping, make a http request or whatever else to either of those domain names they goto the same box...
when apache gets a request it will look at the destination field in the packet header. so for example if the destination is peters-site.homelinux.com it will return the document from /var/www/site1 and if its from peters-newsite.com it will return the document from /var/www/site2.
edit your httpd.conf so it looks something like this
thanks for your reply, but how do I access these other sites from the Web ?, peters-site.homelinux.com is accessible because it's registered with dyndns.org, if I follow your example can I just enter peters-newsite.com ? where will the DNS be resolved?
Hello again, I've registered my new site with dyndns.org, set up the virtual hosts and restarted apache BUT!, the only site that is found is the first one listed in the virtual list, if I set DocumentRoot to anything other than /var/www/html I get the default Apache welcome page ! any ideas ?
my point is , the welcome page should only display when Apache doesn't find a valid index.html file - which is present in the DocumentRoot directive, thanks for your efforts I'll keep you posted as and when I suss it out
Hello again, I've finally got it working, turned out that the directory specified in DocumentRoot must be executable, I noticed this when looking at everything under /var/www which had all access to everyone, I don't know if this is the correct way to do it but it will do for now, once again thanks for your help