【发布时间】:2011-09-13 17:38:30
【问题描述】:
我遇到了与此处另一位用户报告的类似问题 XAMPP v1.7.4 installation issues,local host not working
在我的情况下,将 xampp 升级到 1.7.3 (osx) 破坏了我的虚拟主机。
在 /etc/hosts 我有
127.0.0.1 localhost
255.255.255.255 broadcasthost
::1 localhost
fe80::1%lo0 localhost
127.0.0.1 mysite.test
在 /Applications/XAMPP/etc/httpd.conf 我有:
LoadModule rewrite_module modules/mod_rewrite.so #uncommented
Include /Applications/XAMPP/etc/extra/httpd-vhosts.conf #uncommented
在 /Applications/XAMPP/etc/extra/httpd-vhosts.conf 我有: # 使用基于名称的虚拟主机。 名称虚拟主机 *:80 名称虚拟主机 *:443
<VirtualHost *:80>
ServerName mysite.test
DocumentRoot "/path-to-mysite/"
<Directory "/path-to-mysite/">
DirectoryIndex index.php
Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
当试图访问 mysite.test Apache 时出现以下错误 [错误] [client 127.0.0.1] (13)Permission denied: access to / denied
我已删除 .htaccess,并修复了我的磁盘权限,以防万一导致问题。
谁能建议我可能缺少什么?
先谢谢了。
【问题讨论】:
标签: xampp dropbox virtual-hosts