Apache: client denied by server configuration

前端 未结 9 1814
抹茶落季
抹茶落季 2020-11-27 10:42

I am getting

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

相关标签:
9条回答
  • 2020-11-27 11:09

    This code worked for me..

     <Location />
    Allow from all
    Order Deny,Allow
    </Location> 
    

    Hope this helps others

    0 讨论(0)
  • 2020-11-27 11:13

    Here's my symfony 1.4 virtual host file on debian, which works fine.

      <Directory /var/www/sf_project/web/>
        Options All Indexes FollowSymLinks    
        AllowOverride All
        Order allow,deny
        Allow from all
      </Directory>
    

    If you wan't to restrict access to a specific ip range, e.g. localhost use this:

    Allow from 127.0.0.0/8
    

    The mod_authz_host is responsible for filtering ip ranges. You can look up detailed things in there.

    But maybe the problem could be related to some kind of misconfiguration in your "apache2.conf".

    On what OS is the apache running?

    0 讨论(0)
  • 2020-11-27 11:13

    if you are having the

    Allow from All
    

    in httpd.conf then make sure us have

    index.php

    like in the below line in httpd.conf

    DirectoryIndex index.html index.php
    
    0 讨论(0)
提交回复
热议问题