Question

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

Posted September 17, 2018 1.3k views
Nginx Ubuntu 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?

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.

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

Jarland

Submit an Answer