The steps that eventually sorted it were:
- enable mod-include
- update Options to include "+Include"
- if you're using .html rather than .shtml then also set "XBitHack On"
I wasn't getting any errors with this yet still the includes weren't working. I knew the file attributes must be right as they were copied from the working site. As this was a newer version of Apache I also added the 'Require all granted' in case that was the issue, but in the end it was this server fault entry finally sorted the problem -
if you are going to serve SSI via HTML you need to tell Apache that's your intention:
AddHandler server-parsed .html
AddType text/html .html
AddOutputFilter INCLUDES .html
No comments:
Post a Comment