Report this

What is the reason for this report?

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

Posted on September 17, 2018

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?



This textbox defaults to using Markdown to format your 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 :)

Jarland

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.