Do more with
NameVirtualHost 192.168.0.1
<VirtualHost 192.168.0.1>
DocumentRoot "/var/www/html/site1"
ServerAlias www.example.com
ServerAdmin root@example.com
ServerName example.com
</VirtualHost>
<VirtualHost 192.168.0.1>
DocumentRoot "/var/www/html/site2"
ServerName example2.com
ServerAlias www.example2.com
ServerAdmin root@example2.com
</VirtualHost>
here site1 is the fist site that is to be redirected when the user type the IP address.
Premium Content
You need an Expert Office subscription to comment.Start Free Trial