Using Nginx as reverse proxy for Apache while redirecting to a host other than localhost
If you check the “Use Nginx as reverse proxy for Apache” box in Settings > Hosts > Nginx, by default your Nginx PHP scripts will be redirected to localhost. You can redirect your PHP scripts to a host other than localhost by making two small changes to your Nginx template file and MAMP PRO interface.
- Change the port number of the Apache host to which you want to redirect PHP scripts.
- In your Nginx template, change the port number to reflect the port number change in your Apache host.