XAMPP(苹果机)显示403虚拟主机 [英] XAMPP (Mac) Virtual host showing 403
问题描述
我不断收到拒绝访问错误403,当我尝试运行我的XAMPP安装在我的MAC
I keep getting Access Forbidden Error 403 when I try running my installation of XAMPP on my MAC
我运行该项目的 /应用程序外/ XAMPP / htdocs中
。它在我的 /用户/ my_user_name /项目/
目录
I am running the project outside of /Applications/XAMPP/htdocs
. It's in my /Users/my_user_name/Projects/
directory.
每当我尝试去我的虚拟主机,我收到了403错误:禁止访问
Every time I try and go to my virtualhost I get a 403 error: Access forbidden.
我已经编辑我的httpd-vhosts.conf文件,我已经在httpd.conf让虚拟主机。
I have edited my httpd-vhosts.conf file and I have allowed Virtual hosts in httpd.conf.
我还设置了用户和组到用户my_user_name和组管理员在httpd.conf
I have also set the User and Group to User my_user_name and Group Admin in httpd.conf
我甚至尝试chmoding我的所有文件和目录777,但我仍然可以访问被禁止。
I even tried chmoding all my files and directory 777 but I still get Access forbidden.
我也曾经拒绝改变,在新的安全设置在httpd-xampp.conf文件以允许。
I have also change Deny to Allow in the httpd-xampp.conf file in the new security settings.
由XAMPP提供的erro_log没有提到403错误我看到它在我的访问日志为 127.0.0.1 - - [21月/ 8月/ 2013:14:45:20 -0400] GET / HTTP / 1.1403 1034
The erro_log provided by XAMPP doesn't mention the 403 error I do see it in my access log as 127.0.0.1 - - [21/Aug/2013:14:45:20 -0400] "GET / HTTP/1.1" 403 1034
我打开错误,我看到这[ authz_core:错误] [PID 52813] [客户127.0.0.1:57473] AH01630:客户机通过服务器配置否认:
I turned on errors and I am seeing this [authz_core:error] [pid 52813] [client 127.0.0.1:57473] AH01630: client denied by server configuration:
不知道还有什么检查或尝试。请帮助大声笑。
Not sure what else to check or try. Please help lol.
推荐答案
刚刚有了答案就在这里:
您可以通过添加允许访问要求所有批准
每个虚拟主机
在你的httpd-vhosts.conf:
Just to have the answer right here:
You can permit access by adding Require all granted
to each VirtualHost
in your httpd-vhosts.conf:
# VirtualHost for my.site.com
<VirtualHost *:80>
ServerAdmin webmaster@site.com
DocumentRoot "/Users/me/www/my.site.com/"
ServerName my.site.com
<Directory "/Users/me/www/my.site.com">
ServerSignature Off
Options Indexes FollowSymLinks IncludesNoExec
AllowOverride All
#Order allow,deny <- You can remove this
#Allow from all <- and that
# Insert the following:
Require all granted
</Directory>
</VirtualHost>
祝你好运!
这篇关于XAMPP(苹果机)显示403虚拟主机的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!