Hi, What I am trying to achieve is whenever someone access domain.com/admin it should load " "http://127.0.0.1/index.html" instead of "http://127.0.0.1:4200/index.html". Port 4200 is to serve from the Node application.by chrisa - How to...
Thank you for the suggestion. I've tried changing the priority of blocks by moving the "/admin" block to up but no luck. Still getting the same error. It's trying to connect with the port number. 18852#18852: *1 connect() failed (111: Connection refused) while connecting to upstream, client: x.x.x.x, server: domain.com, request: "GET /admin/login HTTP/1.1", upstream: "by chrisa - How to...
I have 2 different ( Node & Angular ) applications running under a domain. I am trying to configure nginx in way to serve like, whenever anyone access "domain.com" it should serve the node app running on port 4200 and if someone access "domain.com/admin" it should serve the contents from Angular app. Below is my nginx configuration. server { listen 80; listenby chrisa - How to...