LoginSignup
35
32

More than 5 years have passed since last update.

nginxで特定ディレクトリをBasic認証から除外する方法

Last updated at Posted at 2012-12-26
server {
  listen               80;
  auth_basic           "auth";
  auth_basic_user_file /path/to/.htpasswd;
  root                 /path/to/root;
  location /path/to/exception {
    satisfy any;
    allow   all;
  }
}
35
32
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
35
32