Hi there
Background: Confluence instance with Application Link (to Jira) behind Nginx proxy with basic auth.
The problem is basic auth appears twice (or more) due known bug - CONFSERVER-58238.
Workaround (enabling anonymous access) isn't acceptable for us.
Is any another way to resolve it?
Thanks in advance
It seems to work with a such Nginx configuration:
satisfy any;
include /etc/nginx/conf.d/white_ip.conf;
auth_basic "WIKI";
auth_basic_user_file /etc/nginx/conf.d/basic_auth.htpasswd;
deny all;
location / {
proxy_intercept_errors on;
error_page 401 =200 @bug;
proxy_pass http://confluence:8090;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Server $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Authorization "";
}
location @bug {
proxy_pass $scheme://$host$request_uri;
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.