Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nginx: Invalid upstream reference #141

Open
ragnarkurmwunder opened this issue Sep 7, 2020 · 0 comments
Open

Nginx: Invalid upstream reference #141

ragnarkurmwunder opened this issue Sep 7, 2020 · 0 comments
Labels
invalid This doesn't seem right nginx

Comments

@ragnarkurmwunder
Copy link
Contributor

https://wunder.slack.com/archives/C8UN6AG9W/p1597845597476600

Visiting /core/modules/statistics/statistics.php yields 502 Bad Gateway.

Because:

    upstream php {
        server localhost:9000;
    }

There is nothing listening in Nginx container at port 9000.
localhost is wrong and should be replaced by app.

Solution

  1. Instead use this:
    upstream php {
        server app:9000;
    }
  1. Replace all occurrences of fastcgi_pass app:9000; by fastcgi_pass php;.
@ragnarkurmwunder ragnarkurmwunder added bug Something isn't working nginx invalid This doesn't seem right and removed bug Something isn't working labels Sep 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid This doesn't seem right nginx
Projects
None yet
Development

No branches or pull requests

1 participant