Apache:客户端被服务器配置拒绝 [英] Apache: client denied by server configuration

查看:36
本文介绍了Apache:客户端被服务器配置拒绝的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我得到了

[Tue Apr 24 12:12:55 2012] [error] [client 127.0.0.1] 客户端被服务器配置拒绝:/labs/Projects/Nebula/bin/

[Tue Apr 24 12:12:55 2012] [error] [client 127.0.0.1] client denied by server configuration: /labs/Projects/Nebula/bin/

我的目录结构看起来像(我使用的是 Symfony 2,对于其他 Web 框架应该是类似的结构)

My directory structure looks like (I am using Symfony 2, should be similar structure for other web frameworks)

我的虚拟主机设置如下:

I have vhosts setup like:

<VirtualHost nebula:80>
    DocumentRoot "/labs/Projects/Nebula/web/"
    ServerName nebula
    ErrorLog "/var/log/httpd/nebula-errors.log"
</VirtualHost>

<Directory "/labs/Projects/Nebula/">
    Options All
    AllowOverride All
    Order allow,deny
    Allow from 127.0.0 192.168.1 ::1 localhost
</Directory>

我想知道这是什么问题,我该如何解决?

I wonder whats the problem and how do I fix it?

推荐答案

好的,我使用了错误的语法,我应该使用

OK I am using the wrong syntax, I should be using

Allow from 127.0.0.1
Allow from ::1
...

这篇关于Apache:客户端被服务器配置拒绝的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆