9 months ago
Hi, I am trying to use nginx with fastcgi pass to a php-fpm service where my laravel app lives. In my local docker compose setup, I would simply set fastcgi_pass to where my Laravel container host is, e.g. fastcgi_pass ${APP_HOST}:9000;
But on Railway, the nginx is giving me the error that the upstream(Laravel service) is timed out. I saw ipv6 address in the nginx error log about timed out that the APP_HOST must have converted so I guess it does find the correct host. However, with the correct host and port settings, somehow it time out and I have exhausted ways to find out what is happening under the hood. Does anyone have similar experience that can share with me how to deploy a php-fpm with nginx application?
3 Replies
9 months ago
Hey,
It looks like the project linked to in this thread contains Caddy, Not NGINX, have you since pivoted?
Are you still experiencing any issues?
Status changed to Awaiting User Response railway[bot] • 9 months ago
9 months ago
Hi brody,
Yes I did pivot the web server to Caddy and it works. I used the same config "fastcgi_pass" in Caddy though theoretically I can't say they are exactly the same given they are totally different software.
I have a tight project timeline now but I will try to find out in the future and post here if possible.
Status changed to Awaiting Railway Response railway[bot] • 9 months ago
9 months ago
Awsome, I'm glad you made the pivot to Caddy as I think thats far more user friendly!
Status changed to Awaiting User Response railway[bot] • 9 months ago
Status changed to Solved brody • 9 months ago