title: Creating subdomain / virtualhost in apache on CentOS 6.2
body: <p>I've been trying to make a subdomain to host my forum to make it look better than www.mydomain.co.uk/forum/index.php  i want it to be forum.mydomain.co.uk</p>
  
  <p>I've tried all the tutorials, guides and everything i've found on google, but nothing works. I've tried using webmin but that just made things more complicated and i had to reinstall everything from scratch because it wrecked it up. Here's what i have below, could anyone tell me if there's anything other than this that i must do for the subdomain to work?</p>
  
  <p>The contents of my httpd.conf are:</p>
  
  <pre><code>NameVirtualHost *:80
  
  &lt;VirtualHost *:80&gt;
       ServerAdmin email@email.com
       ServerName forum.mydomain.co.uk
       DocumentRoot /var/www/html/forum
       ErrorLog logs/forum-error_log
       CustomLog logs/forum-access_log common
  &lt;/VirtualHost&gt;
  </code></pre>
  
  <p>The domain itself works. It points to my apache page which is what I need for now because I haven't uploaded anything. When I go to mydomain.co.uk/forum it, shows the index of forum contents. forum.mydomain.co.uk shows page cannot be displayed / unable to resolve host.</p>
  
  <p>Are there any other files i must configure for this to work?</p>