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

September 17, 2018 859 views
Apache Nginx Ubuntu

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?

1 Answer

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 :)


Have another answer? Share your knowledge.