[Fix] XAMPP Apache2: 'AH01630: client denied by server configuration'
If you are seeing this error, read this answer first:
Then you just need to update your httpd-vhosts.conf like this, and restart Apache. Hope it helps someone.
NameVirtualHost *:80
<VirtualHost *:80>
DocumentRoot "C:/projects/my_project/"
ServerName my_project.local
ServerAlias *.my_project.local
ErrorLog "logs/my_project.local-error.log"
CustomLog "logs/my_project.local-access.log" combined
<Directory "C:/projects/my_project/">
Options Indexes FollowSymLinks
AllowOverride All
# apache 2.2
Allow from all
# --New way of doing it - apache 2.4
# Require all granted
</Directory>
</VirtualHost>
<VirtualHost *:80>
DocumentRoot "C:/xampp52/htdocs/"
ServerName mainproject.local
ServerAlias *.mainproject.local
ErrorLog "logs/mainproject.local-error.log"
CustomLog "logs/mainproject.local-access.log" combined
</VirtualHost>
Comments