Confluence NGINX Reverse Proxy 504 Error

Hi All,

Is there any reason as to why I am getting an NGINX 504 Gateway timeout error when running NGINX as a reverse proxy for confluence.


User => 80:NGINX => 8090:Confluence



1 answer

0 votes

Hi Karl, 

The code 504 means that the application server isn't getting the expected answer in time. Usually, it happens when the application is under maintenance or if the application has some problem on the configuration. So, if you try to access nginx on port 80, is it works ? If you try to create a simple index.html with a "hello world" passing by NGINX on port 8091, for example, you can see the content of the page ? 

I'm asking it, because, if you be able to see the "hello World" message, we can see that the problem is something about confluence configuration. If you won't be able to see the Hello World, so, the problem is on NGINX configuration. 

When we work with reverse proxy, it's very common we have problems with the TCP/IP conversation (three hand shake) when your request can achieve the destiny, but the request doesn't back by the same path, which can generate an error. So, for you do a more deep troubleshoot about it, you can run a tcpdump on confluence server to see what is happening. 

tcpdump dat host confluence_IP and dat port 8090


Please let me know if you need any additional help.


Best regards, 

Renato Rudnicki


Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Oct 24, 2018 in Confluence

Atlassian Research opportunity with Confluence templates

Do you use templates with Confluence? Take part in a remote 1-hr workshop. You'll receive USD $100 for your time!   We're looking for people to participate in a   remote 1-hr workshop...

1,089 views 17 14
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