How to create a virtual host in cent os?
I have change some in /etc/httpd/conf/httpd.conf file
<VirtualHost local.mydomain.com>
ServerAdmin [email protected]
DocumentRoot /var/www/html/test/
ServerName local.mydomain.com
ServerAlias local.mydomain.com
</VirtualHost>
and in /etc/hosts file
127.0.0.1 dexs01 localhost.localdomain6 localhost #existing lines
::1 localhost6.localdomain6 localhost #existing lines
127.0.0.1 local.mydomain.com local.mydomain.com #my addition
and then I restarted my Apache server so what wrong in this?