Click to See Complete Forum and Search --> : multiple domains on one IP question


capaci
01-06-2004, 06:59 PM
hi, i need to know if there is a way to do this. i have a few domain names (not just mine, one's mine and a couple other of friends and family) and i want to set it up so that they are all served from the same machine. first of all, i don't know how to even set up one to be mapped to my machine, so if that can be explained i'd appreciate it. and then, how would i set up each domain being mapped to a specific user of the machine, so that each users web page can be stored in their home folder's "public_html"? i appreciate any help towards getting to this solution . thanks.

OTP
01-06-2004, 07:08 PM
yes i know you can. But im not sure how. I think it has something to do with hierarchy? Doesn't it. Just wait for someone with the response unless i can remember how.

j79zlr
01-06-2004, 07:15 PM
setup virtual hosts on apache, just set the path to the base directory to the public_html in each user's directory

capaci
01-06-2004, 08:07 PM
ok, so for each user i can set up a virtual host. and for each virtual host have a different domain name pointing to it? i've never used virtual hosts, but i'm sure it's not too difficult. thanks. now, can someone explain how i can get my domain names so when i type in the URL, it goes to the documents on my machine?

j79zlr
01-06-2004, 10:11 PM
http://httpd.apache.org/docs-2.0/vhosts/name-based.html

Pretty easy to do. :)

capaci
01-07-2004, 12:52 AM
ok, that seems simple enough. but it says i have to set up a DNS server to point the domains to an IP. can you explain how that is done? do i have to set that up on my machine too? or is there some kind of service that does can do it for me like registering domain names? i'm pretty new to this domain and webserver stuff, sorry for all the questions :)

j79zlr
01-07-2004, 07:05 PM
Well whoever you pruchased the domain name from can usually change the dns to point to the IP address, is this a static IP that you are running the server from? You can use Dyndns.org to point to a dynamic IP.

capaci
01-07-2004, 07:54 PM
cool, thanks a lot...i'll check that site out.