Bitnami WordPress With NGINXで特定ページのみBASIC認証

0

Bitnami WordPress With NGINXを立ち上げています。
URLが下記(サブディレクトリが /xxx/ またはパーマリンクが xxx- で始まる)のページのみBASIC認証をかけたいです。

https://hogehoge.co.jp/xxx/yyyy/
https://hogehoge.co.jp/xxx-111/

https://docs.bitnami.com/aws/apps/wordpress-pro/administration/use-htpasswd/
を参考にlocationディレクティブを色々変更してやってみましたができません。
そもそもBitnami WordPress With NGINXの環境ではできないものでしょうか?

odahara
demandé il y a 3 ans284 vues
1 réponse
0

自己解決しました。
マニュアルの
「NOTE: If you don’t wish to protect the entire application, but only a sub-URL, create a new location block as shown above only for the sub-URL you wish to protect.」
を信じてやっていましたが、これは言葉足らずで、nginx-app.confの既存部分を一部削除しないと
いくらsub-URLのlocationディレクティブを書いても適用されませんでした。

odahara
répondu il y a 3 ans

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions