我想知道下面是否有可能:
当请求来自Internet的资源时,使Apache请求基本身份validation,并在请求来自本地networking时绕过身份validation。 我在这里阅读了一些关于满足指令的信息,但是我不能使它在这里工作的configuration片段,我试图实现我的目标:
<Directory /path/to/published/resource> AllowOverride All Order deny,allow AuthType Basic AuthName authname AuthUserFile /path/to/authfile Require user username Allow from 192.168.178 Satisfy Any </Directory>
任何build议,为什么这是行不通的?
交换订单,然后再试一次:
<Directory /path/to/published/resource> AllowOverride All AuthType Basic AuthName authname AuthUserFile /path/to/authfile Require user username Order allow,deny Allow from 192.168.178 Satisfy Any </Directory>