SymLinksIfOwnerMatch and SSI Includes

ccto

Verified User
Joined
Feb 24, 2005
Messages
275
Location
Hong Kong
Hello All,

One customer is installing OpenCart and encountered some problem.

In short, it is -

In a CentOS 6 x64 box with Apache 2.4.3 installed, then create a standard DA end-user account -

in /domains/xxx.com/public_html/ , and created a test.shtml -
Code:
<!--#include virtual="/index.html" -->

then, goto http://www.xxx.com/test.shtml , the SSI webpage shall be working fine (i.e. display the index.html content)

If we create a .htaccess with -
Code:
Options SymLinksIfOwnerMatch

Then, the SSI (test.shtml) does not work, and it raises -
"AH01374: mod_include: Options +Includes (or IncludesNoExec) wasn't set, INCLUDES filter removed"
- in the apache domain error log.

Do you have similar experience?
 
Last edited:
Hello,

Along the lines of chatwizrd's response, your htaccess has this:
Code:
Options SymLinksIfOwnerMatch
where the + was not used.
Without the + character, it overrides all previous settings, thus dropping the Includes which was already in the list.

The correct way to just enable one thing, in addition to everything else that was already there would be to use the + charcter, eg:
Code:
Options +SymLinksIfOwnerMatch
so that everything previously set will remain, and SymLinksIfOwnerMatch is simply added to the list.

John
 
Back
Top