How do you create a reverse proxy on Mac to redirect specific domains to another port on localhost?
For example, this is what I'm trying to do.
In /etc/hosts:
127.0.0.1 www.example.com
Which should point to a reverse proxy:
127.0.0.1:80
Which should point to:
127.0.0.1:8080
So essentially:
www.example.com -> 127.0.0.1:8080
www.test.com -> 127.0.0.1:8081