How to URL Rewrite when using NGINX as a reverse proxy for APACHE?

I am using ubuntu 14.04, using NGINX as a reverse proxy for APACHE. I am wondering what conf. file to edit to set up url rewrite to send my .org/.net domains to my .com domain. I am assuming I would have to go into Nginx configuration, and not apache?


Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hey friend!

I suppose in this case you could manage the redirect in either. If B returns “Redirect to C” and then A calls B, returning it’s value to the visitor, then that should function. Similarly if A returns “Redirect to C” then B has no role until asked to return the value of C. At least in my head, this works either way :)