go into Xamp Directory /apache/conf/extra/
edit httpd-vhosts.conf
NameVirtualHost *:80 <VirtualHost *:80> ServerAdmin office@localhost DocumentRoot "C:\xampp\htdocs" ServerName localhost <directory "C:/xampp/htdocs"> Options Indexes FollowSymlinks Includes ExecCGI AllowOverride All Order Allow,deny Allow from all </directory> </VirtualHost> <VirtualHost *:80> ServerAdmin office@localhost DocumentRoot "<your external directory>" ServerName domain-to-listen <directory "<your external directory>"> Options Indexes FollowSymlinks Includes ExecCGI AllowOverride All Order Allow,deny Allow from all Require all granted </directory> </VirtualHost>the
Require all granted
is essential!Start Xampp Apache and done 🙂