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
Community showcase
Published Mar 12, 2019 in Confluence

Confluence Admin Certification now $150 for Community Members

More and more people are building their careers with Atlassian, and we want you to be at the front of this wave! Important Dates Start the Certification Prep Course by 2 April 2019 Take your e...

1,334 views 2 13
Read article

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