Date: Sat, 17 May 2003 22:33:09 -0700 (PDT) From: Wayne Lubin <wayneclubin@yahoo.com> To: Matthew L <unixparse@yahoo.com> Cc: freebsd-questions@freebsd.org Subject: Re: Regarding Virtual Hosts & Domains Message-ID: <20030518053309.74058.qmail@web41307.mail.yahoo.com> In-Reply-To: <20030518033308.13563.qmail@web9505.mail.yahoo.com>
next in thread | previous in thread | raw e-mail | index | archive | help
I have been thinking about computers for only 7 years so I am not at all confident in what i say so don't completely believe what I say, but I do think I have some answers. When someone types www.mydomain.com or www.mydomain2.com into the browser, the domain name is converted into the ip address of that machine you got serving up those index.html pages. This is done by adding those two lines to the name server servicing your ip address. More than likely you are not running your own name server so all you have to do is tell the guy who runs the name server servicing your ip address to put in those lines for you, and he will probably want a little money for it. I think there may also be some free name servers who may do it for you. So now your machine will get port 80 requests from ppl who are requesting either web page. How do you tell them apart? Well along with a request, a web browser also sends the domain name being requested, that is how you know :). Now more than likely you are using some web server, apache maybe? And each webserver probably has its own way of handling which page gets served when doing multi hosting stuff.With apache I know that you just gotta put some entries into one of its conf files. So in other words if you are not running your own name server, and you are using some third party web server, then your question has nothing to do with freebsd. And in fact all you need to do tell your name server guy what you want, and look into your webserver docs to see how to virtual host. Wayne --- Matthew L <unixparse@yahoo.com> wrote: > Hi, > > This e-mail is regarding setting up virtual > hosts and hosting more then one domain on my freebsd > machine. I currently registered two domains and i > was wondering how i would host both domains on my > computer so both domains can point to separate > index.html pages and be totally independent of > eachother. Example: so www.mydomain.com points to a > different site then www.mydomain2.com would this be > done my adding entries into the namedb directory. > Also, i know that virtual hosts has to be done > within httpd.conf but i'm not to sure how to go > about that. Any clue on how i can go about setting > up virtual hosts along with having multiple domains > being hosted off my local machine instead of someone > else. Thank you, all advice is welcome. Look > forward to hearing from some people. Once again all > ideas are greatly apperciated. > > Regards, Matthew. > > > --------------------------------- > Do you Yahoo!? > The New Yahoo! Search - Faster. Easier. Bingo. > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" __________________________________ Do you Yahoo!? The New Yahoo! Search - Faster. Easier. Bingo. http://search.yahoo.com
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030518053309.74058.qmail>