How to configure Magento2 using MAMP PRO and nginx?

Has anyone succeeded in setting up Magento2 and MAMP nginx? I use MAMP PRO 4.1.1 and did not understand how MAMP works with the rewrites and rules that we configure for each site, or if there is a way to debug and view the final nginx configuration.

enter image description here

I would appreciate if anyone shares the configuration for Magento2 on this screen.

Thanks.

+9
mamp mamp-pro magento2
source share
2 answers

You must disable "Use Nginx as a reverse proxy for Apache", otherwise you need to enable Apache to work with nginx.

Screenshot

0
source share

I just ran into this problem, and for me it was that my hosts chose both Apache and Nginx. What was strange was that I couldn’t change it, so I had to create a new host with the selected NGINX, and it worked.

You may also need to configure NGINX "try_files" on the NGINX tab as follows: $ uri $ uri // index.php? $ Args

enter image description here

enter image description here

This link also provides more useful information.

0
source share

All Articles