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

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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Jul 10, 2018 in Confluence

We want to see the templates you've created in Confluence!

Hi Community, Jessica here from the Confluence Product Marketing team!  July’s community challenge is all about sharing pictures  — and as an extension of our first post on what ...

605 views 20 11
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