I'm encountering a 403 Forbidden error when trying to access the /admin page of Vaultwarden, which is protected by HTTP basic authentication via Nginx Proxy Manager.
Problem Summary:
Environment: Raspberry Pi running Docker with Vaultwarden, Portainer, and Nginx Proxy Manager. Issue: Accessing the /admin page after entering credentials results in a 403 Forbidden error.
Details and Configuration:
Nginx Configuration: location /admin { auth_basic "Restricted Access"; auth_basic_user_file /data/compose/1/data/.htpasswd; proxy_pass http://localhost:8080; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; } What I've Tried:
Verified the .htpasswd file is correctly configured and accessible by Nginx. Checked file permissions to ensure they are set correctly. Reviewed Nginx error logs, but they do not provide specific information about the cause of the 403 error. Confirmed that Vaultwarden works fine without the password protection.
Any insights or suggestions would be greatly appreciated. If more information is needed, please let me know!
Thank you!
Screen: Proxy Host Basic Configuration SSL Configuration Advanced and Custom Nginx Configuration 403 Forbidden Error