0
我想實現什麼:(基於主機名)的生產和分期 的.htaccess:結合IP模塊和基本身份驗證
- 一個.htaccess文件
- 塊
:兩個enviromentsSetEnvIfNoCase Host development\.foobar\.tld authRequired <RequireAny> <RequireAll> Require all granted Require not ip 1.2.3.4 </RequireAll> <RequireAny> <RequireAll> Require all granted Require not env authRequired </RequireAll> AuthType Basic AuthName "Development" AuthUserFile /path/to/.htpasswd Require valid-user </RequireAny> </RequireAny>
我試了一下,到目前爲止具體的IP
我現在的問題是IP塊被忽略。我不知道如何正確嵌套Require指令。