Keywords: MEAN - AWS - Technical issue - Other
1. I am deploying an angular app and node api app on a lighsail server. I want to redirect only my "/api/*" url requests to my node api server which running on localhost:3000(on the server) and other requests to my angular app. Ex. example.com/anyurl --> should work as angular client routing but when sending any request like example.com/api/* it should go(proxied) to node api server. BTW my node api routes are api/* I am using the below proxy config in my apache proxy conf file: ProxyPass /api/* http://127.0.0.1:3000 ProxyPassReverse /api/* http://127.0.0.1:3000 But it's not working. It's not redirecting to node api instead it redirecting to client routing.
- I added a subdomain to my lightsail DNS zone. How can I configure apache server to any port running another app. **BTW My apps are lighweight, so I wan to deploy both on a lightsail instance