Running Confluence behind NGINX - synchrony misconfiguration? Edited

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

This widget could not be displayed.

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
Community showcase
Posted Sep 17, 2018 in Confluence

Why start from scratch? Introducing four new templates for Confluence Cloud

Hi my Community friends!  For those who don't know me, I'm a product marketer on the Confluence Cloud team - nice to meet you! For those of you who do, you know that I've been all up in your Co...

590 views 7 6
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you