【发布时间】:2014-02-03 07:00:33
【问题描述】:
很遗憾,但我已经在设置虚拟主机上停留了几天,我在这里寻求帮助。我之前用 xampp 以前的版本设置过虚拟主机,但是 xampp 1.8.2 和 1.8.3 简直让我毛骨悚然。
osx 10.9
在取消注释 httpd-vhosts.conf(在 httpd.conf 中)的包含后,localhost 和其他所有内容都会收到 403 错误,但 localhost/phpmyadmin 除外
在我的 httpd-vhosts.conf 中:
<VirtualHost *:80>
DocumentRoot "/Applications/XAMPP/htdocs/website”
ServerName website.com
<Directory “/Applications/XAMPP/htdocs/website”>
Options Indexes FollowSymLinks Includes ExecCGI
AllowOverride All
Require all granted
</Directory>
</VirtualHost>
到目前为止,我已经尝试了以下方法: - 将 httpd.conf 中的用户和组从 daemon 和 daemon 更改为 myusername 和 admin - 在 httpd.conf 中,我什至尝试过
<Directory />
AllowOverride None
Require all granted
</Directory>
但是当我尝试访问 localhost 或主机文件中列出的重定向到 127.0.0.1 的任何名称时,这将返回 404 错误
【问题讨论】:
标签: apache xampp virtualhost