Linked Questions

Popular Questions

How to point a subdirectory of an URL to a different port

Asked by At

I have https://example.com running reactjs and https://example.com/api is pointing to a different port running node.js.

I've tried editing /etc/hosts file to redirect the api to different port but it's not working. How can I fix it?

127.0.0.1:3000  example.com/api
127.0.0.1:3010 example.com

Related Questions