DNS configuration www.yourdomain.com Resolution to 192.168.0.1apache configuration file modified as follows: # ### section 3: Virtual hosts #
namevirtualhost 192.168.0.1 ServerHost 192.168.0.1> ServerAdmin system @sohu.com document VAR / WWW / HTML / ServerName www.mydomain.com errorlog /var/www/logs/www.mydomain.com-error_log customlog /var/www/logs/www.mydomain.com-access_log common virtualhost> ServerAdmin minkychu@sohu.com DocumentRoot /www/docs/www.yourdomain.com ServerName www.yourdomain.com ErrorLog /www/logs/www.yourdomain.com-error_log CustomLog /www/logs/www.yourdomain.com -Access_log common virtualhost> virtualhost>