I am looking to get subdomains employed by an internet application that i am focusing on. I adopted this tut http://net.tutsplus.com/tutorials/php/basecamp-style-subdomains-with-codeigniter/ and that i could have it working in your area with the addition of my web addresses to my /etc/hosts file after which adding the next to my httpd.config file

<VirtualHost *:80>  
    DocumentRoot "/Users/username/Sites/snapGiftApp"  
    ServerName snapgiftapp.com  
    ServerAlias snapgiftapp.com  

    <Directory "/Users/username/Sites/snapGiftApp">  
        Options -Indexes  
        Options FollowSymLinks  
        AllowOverride All  
    </Directory>  
</VirtualHost>  

<VirtualHost *:80>  
    DocumentRoot "/Users/username/Sites/snapGiftApp"  
    ServerName snapgiftapp.com  
    ServerAlias *.snapgiftapp.com  

    <Directory "/Users/username/Sites/snapGiftApp">  
        Options -Indexes  
        Options FollowSymLinks  
        AllowOverride All  
    </Directory>  
</VirtualHost>

I am now looking to get it focusing on my server and i am not able to obtain the subdomain piece working. If put forth http://snapgiftapp.com, the thing is the website landing page all right. If put forth any http://subdomain.snapgiftapp.com, the thing is a mistake page.

I have added a wildcard subdomain to my dns and i have added the next to my httpd.config file and i am still getting a mistake when viewing http://subdomain.snapgiftapp.com

<VirtualHost *:80>
    DocumentRoot "/home/snapgift"  
    ServerName snapgiftapp.com  
    ServerAlias snapgiftapp.com  

    <Directory "/home/snapgift">  
        Options -Indexes  
        Options FollowSymLinks  
        AllowOverride All  
    </Directory>  
</VirtualHost>  

<VirtualHost *:80>  
    DocumentRoot "/home/snapgift"  
    ServerName snapgiftapp.com  
    ServerAlias *.snapgiftapp.com  

    <Directory "/home/snapgift">  
        Options -Indexes  
        Options FollowSymLinks  
        AllowOverride All  
    </Directory>  
</VirtualHost>

What shall we be held doing wrong around the server that this isn't working? Should i supply the full path for that directory? i.e. /var/www/etc/etc.. ?

Appears which i had my wildcard dns set around the domain title and this is not on the particular host.