Initial setup for XAMPP Virtualhost gives this error:
“Access forbidden!
You don’t have permission to access the requested directory. There is either no index document or the directory is read-protected.
If you think this is a server error, please contact the webmaster. …”
To solve this:
- in \xampp\apache\conf\httpd.conf, modify:
<Directory />
Options FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
</Directory>
to:
<Directory />
Options FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>
转载:http://xingshi5216.blog.163.com/blog/static/4603159120121610230516/