Adding Virtual Domains to Apache

Virtual Hosts are great for servers, it allows you to have multiple domains, Subdomains and Users all use the same Web Host (Server) and Is easy to configure.

 

First Please make sure your server is configured to use Virtual Hosts, See Here , Please note this is fundamental

 

Now you have your domain on a Virtual host you can now add others, But you need to add your Host to your DNS zone file from your domain regestrar, See Here

 

 

Now you are ready browse to your Apache installation folder and go to httpd-vhosts.conf

[box type=”shadow”]apacheconfextrahttpd-vhosts.conf[/box]

 

and add the extra hosts you setup in your Domain Registrars DNS Host Names like so,

(be sure to replace ‘dds’ with your subdomain)

Make sure this is at the end of your file, after your root of the domain, make sure you have configured the subdomain folder and the DNS Host names

Be aware that It can take up to 48 hours for Host Records to update through the internet!

Xampp and Apache

I recently played around with Apache and fond it incredibly educational.

I used Apache for multiple websites and sub-domains, and its a great web server. and I like Xampp’s user Interface, allowing me to edit, configure and Error check my site.

Xampp Control Panel
Xampp’s user interface, server side

 

Don’t get me wrong though, there are some downfalls when putting it through its paces using Owncloud I discovered that php supported was only allowing 2GB uploads, because it is 32Bit, I later discovered that Xampp is only 32Bit for Windows. This was a major disappointment for me, but I still found workarounds.

Apache is great and easy to use with Xampp, I recommend that anyone wanting to get into web servers and general Web hosting try it out first. I hosted it on my Windows Server, But using a server is completely unnecessary, I was also able to run it on my Laptop.

 

For a test Environment or to start out on Web Servers, I recommend Xampp. Its a trade up over usability and performance on Windows.