Sections:
Allows you to map local domain(s) to specific directories.
notepad C:\Apache24\conf\httpd.conf
vhosts
#Include conf/extra/httpd-vhosts.conf
to
Include conf/extra/httpd-vhosts.conf
notepad C:\Apache24\conf\extra\httpd-vhosts.conf
<VirtualHost *:80>
ServerAdmin webmaster@dummy-host.example.com
DocumentRoot "${SRVROOT}/docs/dummy-host.example.com"
ServerName dummy-host.example.com
ServerAlias www.dummy-host.example.com
ErrorLog "logs/dummy-host.example.com-error.log"
CustomLog "logs/dummy-host.example.com-access.log" common
</VirtualHost>
DocumentRoot "${SRVROOT}/docs/dummy-host.example.com"
to
DocumentRoot "C:/var/www/mysite1"
ServerName dummy-host.example.com
to
ServerName mysite1.localhost
ErrorLog "logs/dummy-host.example.com-error.log"
CustomLog "logs/dummy-host.example.com-access.log" common
to
ErrorLog "logs/mysite1.localhost-error.log"
CustomLog "logs/mysite1.localhost-access.log" common
<Directory "C:/var/www/mysite1">
Options Indexes FollowSymLinks
AllowOverride None
Require all granted
</Directory>
services.msc