Running Confluence behind NGINX - synchrony misconfiguration?

Mihael Sedmak December 11, 2017

Hi,

I've used the information in this article to set up an nginx proxy in front of a self hosted Confluence Server instance.

The article proved to be very useful, but the synchrony proxy configuration did not work - specifically the block

location /synchrony {
        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_pass http://some-server:8091/synchrony;
        proxy_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection "Upgrade";
    }

 had to be replaced with

location /synchrony-proxy {
        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_pass http://some-server:8091/synchrony;
        proxy_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection "Upgrade";
    }

Please notice the bold text for the diff.

After applying the change, the collaborative editing feature works, but fails at times (random pages, random users) with an appearance of this sort of error. All the suggestions in the error thread have been applied, no effect.

Am I missing something in the original config that is stopping the original config to work? Could the change I made be the cause of the 

Thanks in advance!

1 answer

0 votes
Lars Olav Velle
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 11, 2017

From my understanding the /confluence-proxy is used when you do not have a proxy server in front of confluence such as nginx.

What version of Confluence are you on? 

it might be related to a bug:
https://jira.atlassian.com/browse/CONFSERVER-45726

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events