Setting htpasswd for Reverse Proxy on Nginx
As an extension to this article, can somehow share the method to add htpasswd to a reverse proxy on apache and nginx servers?
https://www.linode.com/docs/web-servers/nginx/use-nginx-reverse-proxy/
I have added htpasswd for an nginx server in the normal way and that is not working, which could be due to a reverse proxy in place. For that reason, I am looking into a way to do the same on the reverse proxy system.
2 Replies
Hi @browserjungli! There's an official NGINX guide on setting up basic authentication in NGINX here:
https://docs.nginx.com/nginx/admin-guide/security-controls/configuring-http-basic-authentication/
If that doesn't quite have the info you need, there's a third-party guide here:
https://zeppelin.apache.org/docs/0.6.2/security/authentication.html
And a Server Fault post here that might help:
https://serverfault.com/questions/952956/nginx-authenticaion-with-reverse-proxy-does-not-work