Multi-domain, virtual host configuration
To turn on the virtual Host configuration option:
Open the httpd.conf file, locate the httpd-vhosts.conf line, and dismiss the line comment;
Open httpd-vhosts.conf File
Modify the following
<virtualhost *:80>
ServerName localhost
DocumentRoot "/applications/xampp/htdocs"
<directory "/applications/xampp/htdocs" >
Options Indexes FollowSymLinks includes execcgi
AllowOverride All
Require all granted
</Directory>
Errorlog "Logs/dummy-host.example.com-error_log"
Customlog "Logs/dummy-host.example.com-access_log" common
</VirtualHost>
If the directory corresponding to the need for a virtual host is not in the "/applications/xampp/htdocs", but in a folder on the desktop, you must find it in httpd.conf
<ifmodule unixd_module>
User Daemon
Group Daemon
</IfModule>
Modify ' User daemon ' to ' username '
After adding the following content
<virtualhost *:80>
ServerName localaliapp.com
DocumentRoot "/users/loganv/desktop/do/aliapp/webroot"
<directory "/users/loganv/desktop/do/aliapp/webroot" >
Options Indexes FollowSymLinks includes execcgi
AllowOverride All
Require all granted
</Directory>
Errorlog "Logs/dummy-host.example.com-error_log"
Customlog "Logs/dummy-host.example.com-access_log" common
</VirtualHost>
If 403 appears, try Chmod-r 777/users/loganv/desktop/do/aliapp/
If you do not have a real extranet domain name, you need a local
Vi/etc/hosts
Add a row
127.0.0.1 localaliapp.com
XAMPP Simple Virtual host configuration under Mac