Server Side Includes fix for Yosemite

By October 22, 2014 Coding

When Yosemite released i decided that i was going to do a clean install and abandon MAMP. I followed this post to install apache and this post to configure the virtual hosts properly. I have to say it was not easy but i survided.

Then i spent almost a day googling why i wasn’t able to make SSI work. I almost gave up and tried Hammer and Codekit includes.

After trying every single thing i found a website that had a linux guide that gave me an idea. Since apache changed a lot and i had to uncomment several modules to make stuff work, i decided to look for anything related to includes and found on line 103 this:
LoadModule include_module libexec/apache2/

Just uncomment this and the other 2 lines that have .shtml and you should be good to go.

Adding one of my virtual hosts here in case that helps.

ServerName noblat
DocumentRoot "/Users/fenda/Sites/noblat/"
<Directory "/Users/fenda/Sites/noblat/">
Options Indexes FollowSymLinks Includes ExecCGI
AddType text/html .shtml .html .htm
AddHandler server-parsed .shtml .html .htm
AllowOverride All
Order allow,deny
Allow from all

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.