Settings > Hosts > Nginx
Nginx options can be set for the selected virtual host in the table. These options are security relevant! More information about configuring your Nginx Server can be found in the Nginx documentation.
-
Directory index
Determine which file Nginx should serve if no filename is given in an address. By default it is either index.html or index.php. -
AutoIndex
Activates or deactivates “directory browsing”. If there is no index.html, index.php, etc. in the document root, the content of the folder is displayed when this option is enabled. Without this option, nothing will be displayed or an error message will appear.
-
Additional parameters for location:/
-
try_files
Checks the existence of files in the specified order and uses the first found file for request processing. (See the Nginx documentation for more information.) -
Custom
These directives go directly to the nginx.conf file.
-
-
Access Limits
(See the Nginx documentation for more information.)-
allow
Allows access for the specified network or address. If the special value unix: is specified (1.5.1), allows access for all UNIX-domain sockets. -
deny
Denies access for the specified network or address. If the special value unix: is specified (1.5.1), denies access for all UNIX-domain sockets.
-
- Additional parameters for <server> directive
Add additional parameters to the <server> directive here.
nginx.conf file
You cannot directly edit your nginx.conf file in MAMP PRO. You need to make custom configurations through your nginx.conf template file. More information on how to configure your nginx template file can be found in our Menu > File section.