Subdomains + Apache

So I have a vhosts.conf files that looks like..

Code:
   <VirtualHost *:80>
      ServerName www.sole.co.uk
      DocumentRoot /home/luke/rails/public
      RailsEnv development
      <Directory /home/luke/rails/public>
         AllowOverride all
         Options -MultiViews
      </Directory>
   RailsBaseURI /
   </VirtualHost>

<VirtualHost *:80>
ServerName payments.solen.co.uk
DocumentRoot /home/luke/payments
</VirtualHost>

I have created my subdomain of payments with my registrar. But my website for domain.com and subdomain.domain.com have the same ip address so the cname records are the same.

How do i configure my freeBSD server to point the subdomain to the right location?
 
Back
Top