1

Here is my snippet of nginx:

     location / {
             # First attempt to serve request as file, then
             # as directory, then fall back to displaying a 404.
             try_files $uri /index.html;
             auth_basic "Private Property";
             auth_basic_user_file /etc/nginx/.htpasswd;
     }

     location /schedule {
             auth_basic off;
             proxy_pass http://localhost:25000;
     }

However, on /schedule, it is showing below page. How to fix this?enter image description here.

1
  • What do you see in the Nginx access log and Nginx error log? Commented Dec 22, 2021 at 10:58

1 Answer 1

0

Try this:

 location = /schedule {
         auth_basic off;
         proxy_pass http://localhost:25000;
 }

Not the answer you're looking for? Browse other questions tagged or ask your own question.