'Where does MAMP keep its web server config file?

I'm using Mac OS X, and I use MAMP for local development. I want to modify my web server(nginx.conf or .htaccess) configuration, and not sure which one/where MAMP place their web server config.

How do I find out ?

Any hints ?



Solution 1:[1]

For MAMP 4.2 the path is: /Applications/MAMP/conf/nginx/nginx.conf

Solution 2:[2]

Open Finder and click on the Application Tab, scroll to find the icon shown below:

Mamp Icon

Then double click this icon to get folder you want.

Solution 3:[3]

Just to clarify for future readers using MAMP PRO:

The base config template is located at ./MAMP/conf/nginx/nginx.conf, but the real/final config is located at /Library/Application Support/appsolute/MAMP PRO/conf/nginx.conf

This is the config that includes any of the custom settings for individual Hosts, which might be useful for review/comparison purposes.

Solution 4:[4]

For anyone using MAMP PRO 6, according to the logs you can find the actual (non-template) NGINX config file at:

/Library/Application Support/appsolute/MAMP PRO/conf/nginx.conf

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Massimiliano Kraus
Solution 2 ono2012
Solution 3
Solution 4 GROVER.