2

I have all directories protected with a password as below.

I have one dir ./opendir (or: /var/www/opendir) and I would like it to be open. (not restricted)

How can I do this?

server {
        listen       80;

        root /var/www/;
        index index.php;

        server_name localhost;

        auth_basic "Restricted";
        auth_basic_user_file /var/www/.htpasswd;

        location / {
        ........... ETC ...........
Bob van Luijt
  • 7,153
  • 12
  • 58
  • 101

1 Answers1

1
location ^~ /myurl/ {
            auth_basic off;
            autoindex on;
   }
user1159819
  • 1,549
  • 4
  • 16
  • 29