Custom Domain with NGINX Reverse Proxy + Dynamic Upstream Routing Returning “Application Failed to Respond”
Anonymous
PROOP
3 months ago
I am building a multi-tenant routing gateway on Railway using NGINX + a resolver service and I am facing an issue where:
- The application works correctly internally
- But on the custom domain I receive the Railway error page: “Application failed to respond” 502
1 Replies
3 months ago
A 502 means the request is reaching railway but can't get a response. since the Railway domain works, your NGINX is fine.Is the custom domain attached to the NGINX gateway service and not another service in your project? Also, does NGINX listen on the same port as process.env.PORT / the port railway expects?