Main Content

Adding Virtual Hosts

Archive - Originally posted on "The Horse's Mouth" - 2006-04-19 07:07:54 - Graham Ellis

If you're running your own server and want to look after multiple domains, you can easily do so using Apache httpd's Virtual Hosting. It's as easy as 1-2-3-4 ...

1. Create new host names in your DNS
2. Create home directories and a test index.html
3. Set up virtual hosts in httpd.conf (redhat) or vhosts.xxxx.conf (SuSE) - detail
4. Restart Apache

(Quick summary from yesterday's training ... thought it would be nice for some of the more technical amongst you to see it all in one place. If you.re not yet that technical, but wannabe, have a look at our deploying LAMP course or our associated resources)