Update (24 August 2011): Due to my recent “restart,” I wanted to see if these instructions still work with MAMP 2.0.1. I followed them as written and was able to get server-side includes working the first time with no issue.
Making MAMP recognize server-side includes is simple:
- Stop the MAMP servers.
- Open MAMP's
httpd.conf(located at/Applications/MAMP/conf/apache/httpd.conf) in a plain text editor. - Find the line
DirectoryIndex index.html index.phpand change it toDirectoryIndex index.shtml index.html index.php - Uncomment the following two lines:
AddType text/html .shtml
AddOutputFilter INCLUDES .shtml - Find the lines
<Directory />and change to
Options Indexes FollowSymLinks
AllowOverride All
</Directory><Directory />
Options Indexes FollowSymLinks
Options +Includes
AllowOverride All
</Directory> - Restart the MAMP servers.