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
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 Tuesday 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 ...

389 views 17 9
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