Settings > Hosts > Apache

Apache options can be set for the selected virtual host in the table. These options are security relevant! More information about configuring your Apache Server can be found at the Apache website.

Note: You cannot make changes to the Apache settings unless the host is set to Apache on the Settings > Hosts > General tab.

MAMP PRO - Apache

Note: Please always pay attention to the exact spelling of all specifications. Due to errors in the set options, Apache may not start.

  • Options for <Directory> directive

    For detailed information on each option, see the corresponding chapter in the Apache documentation.

    • Indexes
      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.

    • Includes
      Allows the use of Server Side Includes (SSI).

    • SymLinksIfOwnerMatch
      Restricted version of “FollowSymLinks”. Allows reference to objects via symbolic links only if the owner matches.

    • FollowSymLinks
      Allows the use of symbolic links as reference to documents in other directories. This is an elegant feature if you would like references to objects that are outside of the directory tree (e.g. protocol files of the web server), but know you want to avoid the hiding of objects through the URL tree.

    • IncludesNOEXEC
      Server-side includes are permitted, but the #exec cmd and #exec cgi are disabled. It is still possible to #include virtual CGI scripts from ScriptAliased directories.

    • Exec-CGI
      Permit CGI execution.

    • MultiViews
      Allows the use or disabling of dynamic documents depending on the language.

    • AllowOverride
      Types of directives that are allowed in .htaccess files.
      (See the Apache documentation for more information.)

    • Require
      Tests whether an authenticated user is authorized by an authorization provider. (See the Apache documentation for more information.)

  • Additional parameters for <Directory> directive
    The statements in this field get added to the <Directory> ... </Directory> portion of the host in Apache’s config file.

  • Directory index
    Determine which file Apache should serve if no filename is given in an address. By default it is either index.html or index.php.

  • Additional Parameters for <VirtualHost> directive
    These directives go directly to the httpd.conf file.

  • Server admin
    E-mail address that the server includes in error messages sent to the client.
    (See the Apache documentation for more information.)

httpd.conf file

You cannot directly edit your httpd.conf file in MAMP PRO. You need to make custom configurations through your httpd.conf template file. More information on how to configure your httpd.conf template file can be found in our Menu > File section.

MAMP PRO and httpd.conf, php.ini, my.cnf

Additional Apache Server Configuration

The configuration files in the /Applications/MAMP/conf/apache/extra/ directory can be included to add extra features or to modify the default configuration of the server. Uncomment, then edit, any of the following configuration files in your httpd.conf template file to make customizations.

  • Server-pool management (MPM specific)
    #Include /Applications/MAMP/conf/apache/extra/httpd-mpm.conf
    (See the Apache documentation for more information.)

  • Multi-language error messages
    #Include /Applications/MAMP/conf/apache/extra/httpd-multilang-errordoc.conf
    (See the Apache documentation for more information.)

  • Fancy directory listings
    #Include /Applications/MAMP/conf/apache/extra/httpd-autoindex.conf
    (See the Apache documentation for more information.)

  • Language settings
    #Include /Applications/MAMP/conf/apache/extra/httpd-languages.conf

  • Real-time info on requests and configuration
    #Include /Applications/MAMP/conf/apache/extra/httpd-info.conf
    (See the Apache documentation for more information.)

  • Local access to the Apache HTTP Server Manual
    #Include /Applications/MAMP/conf/apache/extra/httpd-manual.conf

  • Distributed authoring and versioning (WebDAV)
    #Include /Applications/MAMP/conf/apache/extra/httpd-dav.conf
    (See the Apache documentation for more information.)

  • Various default settings
    #Include /Applications/MAMP/conf/apache/extra/httpd-default.conf