Servers & Services > Nginx

The Nginx web server has recently gained more and more popularity. And in order to be able to provide you with an optimal development environment, with which you come as close as possible to the requirements of most providers, MAMP PRO of course also provides this web server.

MAMP PRO - Servers & Services - Nginx

In the upper right corner of this screen you will find information about which version of the Nginx web server is used and which ports are used for the protocols http and https.

In addition to the general settings possible on this screen, you also have the option of configuring further specific options for each host (Nginx tab).

  • Nginx server is included in GroupStart (because at least one host is using Nginx)
    This checkbox is enabled if at least one host uses the Nginx web server.

  • Use Nginx as a Reverse Proxy for Apache
    Select this checkbox if you want Nginx to forward requests from .php files to Apache (localhost). The following will be added to your “/Library/Application Support/appsolute/MAMP PRO/conf/nginx.conf” file.

    # proxy the PHP scripts to Apache
    location ~ \.php$ {
      proxy_set_header Host $host;
      proxy_set_header X-Real-IP $remote_addr;
      proxy_pass http://xxx.xxx.x.xxx:8888;
    }    
    
  • Nginx Modules
    The Nginx Web Server installed by MAMP PRO comes with several modules pre-installed. The web server modules can be activated or deactivated depending on your needs. Module Description provides information pertaining to features and functions of the selected module.

  • Path to Nginx log file
    The path to your Apache log file. This log file is located at “/Applications/MAMP PRO/logs/nginx_error.log”.