Set up Apache for Virtual Hosts
vhosts
mkdir /var/www/vhosts
/test/html
index.html
nano /etc/httpd/conf.d/test.conf
<VirtualHost *:80> DocumentRoot "/var/www/vhosts/test/html ServerName test.com ServerAlias www.test.com <Directory /var/www/vhosts/test/html> AllowOverride All Options Indexes FollowSymLinks Require all granted </Directory> </VirtualHost>
Set up Second Virtual Host:
Connect to Different Sites:
C:\Windows\System32\drivers\etc\hosts
/etc/hosts
192.168.1.1 test
192.168.1.1 test2
There was an error while loading. Please reload this page.