well, I have a high-end server available and I wanted to use it as webserver for my sites (2-4) Its linux box with probably dual processor and 1G RAM. I can install apache, mysql and php on it and setup DNS server 1. How to have more than one domains mapped to different directories. Can I have more than one domain pointing to this server (different directories)?? Please let me know if I am missing anything here. TIA
Apache Virtual Host Documentation. I wouldn't handle the DNS yourself. It is far better to use multiple DNS servers in different locations.
My suggestion would be don't. Find a decent colo and put your box there if uptime is important to you (and it should be).
Heh, been quite a number of years since I last did that (that is, hosted from home/office) The earlier point about DNS servers is valid: even though I even now have everything setup to easily run my own DNS servers, I'm sticking with the domain registrar's ones, as they are distributed in 5 different physical locations. Another matter is that if you're on an xDSL line, you'll obviously need a static IP address unless you intend to just do really small-time stuff. Also, unless you have a very understanding ISP, you may not be able to get a reverse DNS mapping for your IP address, which could seriously hinder your SMTP (e-mail) server's ability to send e-mails without them being flagged as spam. If it's an ADSL line, be sure that the upstream/upload speed is sufficient, as that's what you need for a server, not the downstream which is important for home use. You'll definitely need a bare minimum of 512K upstream, the more the better. These are just some points to consider... having the server at home is the best way to learn, though, so don't be easily discouraged