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.

Setup:

User => 80:NGINX => 8090:Confluence

Regards,

Karl

1 answer

0 vote

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
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Kesha Thillainayagam
Posted Apr 13, 2018 in Confluence

We want to hear how your non-technical teams are using Confluence!

Hi Community! Kesha (kay-sha) from the Confluence marketing team here! Can you share stories with us on how your non-technical (think Marketing, Sales, HR, legal, etc.) teams are using Confluen...

2,941 views 27 12
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