我的站点有 apache2 .conf 文件。是否可以有一个“or”语句,以便想要访问api的用户要么拥有所需的IP,要么拥有证书?目前看来是这样的。
<LocationMatch ^/api/devices/.+/stuff$>
SSLVerifyClient require
</LocationMatch>
<LocationMatch ^/api/devices/.+/otherStuff$>
SSLVerifyClient require
</LocationMatch>
#possible OR statement here?
<LocationMatch "/(api|websocket|admin|consulting)">
<RequireAny>
#IPs
Require ip XXX.XXX.XXX.XXX
</RequireAny>
</LocationMatch>
谢谢!