要求IP指令Apache Debian出现问题

要求IP指令Apache Debian出现问题,apache,debian,Apache,Debian,我在Apache2.4DebianBuster上使用了一个工作配置。但是,我无法判断是什么导致了错误,因为系统实际上是在解释指令并基于它拒绝访问,而不是允许访问 <location /restricted> <RequireAny> #Admin1 Require ip 192.168.172.241 </RequireAny> </location> 提前感谢您的帮助。我发现自己遇到了有史以来最基本的问题之一

我在Apache2.4DebianBuster上使用了一个工作配置。但是,我无法判断是什么导致了错误,因为系统实际上是在解释指令并基于它拒绝访问,而不是允许访问

<location /restricted>
     <RequireAny>
#Admin1
        Require ip 192.168.172.241
     </RequireAny>
</location>

提前感谢您的帮助。

我发现自己遇到了有史以来最基本的问题之一。我通过SSH SCP连接在Windows中的Notepadd++中修改了ACL配置文件。无论出于何种原因,它在带有IP的行上创建了Microsoft回车和下线,从而使该条目的ACL“仅”无效。吸取的教训

<Directory /var/www/html>
    Options -Indexes +FollowSymLinks
    AllowOverride All
</Directory>
[authz_core:error] [pid 20896] [client 192.168.172.241:58346] AH01630: client denied by server configuration: proxy:http://[internal.ip:port]