Apache:如何将虚拟目录限制为本地网络

use*_*282 4 apache security lan access-control apache-config

在我家的Apache 2.x服务器上,我有许多虚拟目录.我已经设置了路由器,以便我可以从互联网访问Apache.我需要在家庭网络局域网外部访问其中一个虚拟目录(/ private).所以给定/私有,如何配置Apache只为192.168.4.x的/ private提供请求?

cha*_*aos 10

<Directory /users/me/private>
    Order deny,allow
    Allow from 192.168.4
    Deny from all
</Directory>
Run Code Online (Sandbox Code Playgroud)