I've setup nginx on an Amazon EC2 instance I've purchased but I am stuck with the most basic question. How would I be able to route all the requests to another remote address. Assume that you have the sites a.com and b.com. So when user makes a requests like;
- a.com/bringMeStuff -> (it should route it to) b.com/bringMeStuff
- a.com -> (it should route it to) b.com
I have tried methods like proxy_pass, rewrite but what I want to do exactly is to route all the urls to the other remote server. Would it be possible?