View Full Version : [SOLVED] Subdomain

March 14th, 2010, 10:30 AM
I have set up my ubuntu 9.1 server and I am now succesfully running 6 web sites, all with their own Vhost file. Now I have tried to get a subdomain working but I can't get it too work.

Below is my Vhost file for the subdomain that I trying to get working but it doesn't :(

<VirtualHost *:80>

# Admin email, Server Name (domain name) and any aliases
ServerAdmin koala@koalacomics.com.au
ServerName cricket.cliftonbazaar.com
ServerAlias www.cricket.cliftonbazaar.com

# Index file and Document Root (where the public files are located)
DirectoryIndex index.htm default.htm index.php default.php
DocumentRoot /home/www/websites/www.cricket.cliftonbazaar.com

# Custom log file locations
LogLevel warn
ErrorLog /home/www/websites/errors/cricket.cliftonbazaar.log
CustomLog /home/www/websites/logs/cricket.cliftonbazaar.log combined


Please note that this is a direct copy of my other vHost files so I know it works, it's just the word 'cricket' that is the only difference between this one and the www.cliftonbazaar.com file.

Ryan Dwyer
March 14th, 2010, 11:39 AM
Your server is configured fine. You just need to set up a DNS A/host record so cricket.cliftonbazaar.com will resolve to your server's IP.

March 15th, 2010, 08:11 AM
Thanks for that, I have it working now :)