Page 1 of 1

How-to host domains

PostPosted: 05. January 2005 05:19
by spike900011
I've been trying to figure this out for the last couple days but how do I make it if someone registers a domain at somewhere like domain.com how would I be able to set it up that they would be able to use the domain that they bought on my server?

Re: How-to host domains and subdomains

PostPosted: 05. January 2005 05:48
by taustin
On your server, you need to learn how to set up virtual domains.

Someone, somewhere, has to run a DNS server to handle the domain records. This can easily run on the same machine as Xampp, since it doesn't take much in the way of system resources. There are also free services available.

PostPosted: 05. January 2005 06:01
by spike900011
alright I sort of get what your saying, I hope I get this figured out so I can start my hosting!(this is the last step I need) If I'll have any more questions I post. But if someone could point me to a website where I could learn more about this it would be appericated.

PostPosted: 05. January 2005 19:51
by taustin
spike900011 wrote:alright I sort of get what your saying, I hope I get this figured out so I can start my hosting!(this is the last step I need) If I'll have any more questions I post. But if someone could point me to a website where I could learn more about this it would be appericated.


More about which one?

http://www.apacheweek.com/features/vhost is a decent discussion of how to configure virtual hosts on apache. (Doesn't xampp's default http.conf already use virtual hosts?). The file you need to edit, http.conf, is in c:\apachefriends\xampp\apache\conf\ (unless you didn't use the defaults when you installed it).

http://www.tutorialized.com/tutorial/Co ... pache/1137 has a lot of info, too, including how to deal with ZoneEdit.com for DNS. ZoneEdit, however, is only free for one (or maybe two or three) domains. If you want to host for others, you'll really need to run your own DNS servers eventually. (However, setting up a DNS server is not for the faint of heart, and you must have two public IP addresses to do so.)

PostPosted: 06. January 2005 08:35
by foxxx428
Okay so they have a domain name and you want to host a website for them on your machine right? Here's how mine is set up. They will have some sort of a control panel through who the domain is purchased from. They should see somewhere in there (mine is under DNS Management - Hosts) Hostname, Address, Record Type and MX Pref. Lets assume your IP Address or router address (not your network IP address) is 65.65.655.655.
1. Hostname: www Address: 65.65.655.655 Record Type: A MX: 10
2. Hostname: @ Address: 65.65.655.655 Record Type: A MX: 10
The third part is where I have trouble but the website itself works. Step 3 is mail. I have an SMTP server set up but my forum e-mail only half works. I'll post what I have and hopefully someone can correct the error.
3. Hostname: mail Address: 65.65.655.655 Record Type: MXE MX: 10

That will direct the domain name to the ip address that your server is hosting the site from. I hope that was what you were looking for.

PostPosted: 09. January 2005 21:31
by spike900011
I just figured out how to do virtual hosts and found a couple of domain services that do domain forwarding(I think that's what it's called) So there's no need for this topic anymore!

PostPosted: 05. February 2005 03:13
by upgrade223
Any good tuts for Windows... the tutorialized.com tutorial was linux-based...seeing as this is the XAMPP for Windows thread, some tuts on setting up Virtual Hosts on Windows would be helpful. I tried following the instructions from Apache, but the nameserver change from my registrar hasn't happened yet...though I made the <VirtualHost*> changes as instructed by Apache, my localhost became unavailable...which raises the question...can my localhost pages (in XAMPP\htdocs\) be reached if virtual hosts are added to the httpd.conf...or is it vhost.conf?

I am currently trying ZoneEdit (http://www.zoneedit.com) as my ip address forwarding and using DirectUpdate for my Dynamic DNS. Anybody have experience with ZoneEdit's perl script (http://www.zoneedit.com/doc/zedynip.pl) and any suggestions on how to make the script update to ZoneEdit every five minutes (cron-like?). Thanks a million!