Xampp Windows 403 Forbidden
Posted:Monday, December 9th, 2013
Last modified:Friday, July 3rd, 2015
Preinstalled XAMPP virtualhost config files return 403 Access Forbidden on Windows even when an index file is present.
Update virtualhost configuration to include the following and reload/restart Apache.
<VirtualHost *:80> ServerAdmin firstname.lastname@example.org DocumentRoot "C:/xampp/htdocs/dummy-host2.example.com" ServerName dummy-host2.example.com ErrorLog "logs/dummy-host2.example.com-error.log" CustomLog "logs/dummy-host2.example.com-access.log" common <Directory "C:/xampp/htdocs/dummy-host2.example.com"> AllowOverride All Order Allow,Deny Allow from all Require all granted </Directory> </VirtualHost>
You may not need AllowOverride All, but I tend to use it on a lot of sites.
Available Wiki Topics
The operator of this site makes no claims, promises, or guarantees of the accuracy, completeness, originality, uniqueness, or even general adequacy of the contents herein and expressly disclaims liability for errors and omissions in the contents of this website.