You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I had previously configured this setup, which involved several files for domains in the htpasswd folder to enable basic authentication.
I recently created a new setup on a different machine using the same Docker Compose files and domain names, but encountered an issue where basic authentication no longer functions as intended. Instead of prompting for authentication, the system simply opens the sites directly.
I then deleted all htpasswd files and recreated them using the apache2-utils tool. I checked that these files were visible in the proxy docker container, which they were.
No error messages or other indications of failure were observed.
Dockerfile:
FROM nginxproxy/nginx-proxy:alpine
COPY uploadsize.conf /etc/nginx/conf.d/uploadsize.conf
# I also tried this, instead of mounting via docker-compose, but this also didn't work.#ADD htpasswd /etc/nginx/htpasswd
No manual dockerfile ADD or COPY tricks are needed. Check the filename of your password file according to the docs.
Also check your volume: /etc/nginx/htaccess which should be /etc/nginx/htpasswd.
I had previously configured this setup, which involved several files for domains in the htpasswd folder to enable basic authentication.
I recently created a new setup on a different machine using the same Docker Compose files and domain names, but encountered an issue where basic authentication no longer functions as intended. Instead of prompting for authentication, the system simply opens the sites directly.
I then deleted all htpasswd files and recreated them using the apache2-utils tool. I checked that these files were visible in the proxy docker container, which they were.
No error messages or other indications of failure were observed.
Dockerfile:
The text was updated successfully, but these errors were encountered: