Victor Walch Michnowicz

is a web application developer

XAMPP Virtual Hosts in Windows 8 November 15th, 2012

The Problem

For some reason setting up my virtual hosts in XAMPP in Windows 8 was more difficult than normal. For me, the magic formula was:

<VirtualHost test.localhost:80>
	DocumentRoot "C:/Users/Victor/Documents/Web/test"
	ServerName test.localhost
	ServerAlias test.localhost
	ErrorLog "logs/test-localhost-error.log"
	CustomLog "logs/test-localhost-access.log" combined
	<Directory "C:/Users/Victor/Documents/Web/test">
		Options All
		AllowOverride All
		Order Allow,Deny
		Allow from all
		Require all granted


Also, be sure to uncomment this line LoadModule vhost_alias_module modules/ in your httpd.conf

blog comments powered by Disqus