I have configured my httpd.config file with the following code <VirtualHost *:80> ServerAdmin contact@vedlo.com DocumentRoot /www/vedlo ServerName *.vedlo.com ErrorLog logs/vedlo.com-error_log CustomLog logs/vedlo.com-access_log common </VirtualHost> Code (markup): The www.vedlo.com fetches file from 'vedlo' directory on my VPS but 'computers.vedlo.com' fetches files from other directory which is meant for other domain. How can I solve this problem?
I would suggest reviewing the following article which discusses wildcard hosting: http://www.debian-administration.org/articles/358 If you only require the computers.vedlo.com subdomain however then your apache configuration could just be the following: ServerName www.vedlo.com ServerAlias computers.vedlo.com