http://Bj83.de

Virtual Hosts with XAMPP

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 🙂

Leave a Reply

Your email address will not be published. Required fields are marked *

Follow

Get every new post on this blog delivered to your Inbox.

Join other followers: