Either all Options must start with + or -, or no Option may [closed]

I have this line in a .htaccess file

Options +SymLinksIfOwnerMatch ExecCGI Includes IncludesNOEXEC SymLinksIfOwnerMatch ExecCGI Includes IncludesNOEXEC SymLinksIfOwnerMatch ExecCGI Includes IncludesNOEXEC SymLinksIfOwnerMatch ExecCGI Includes IncludesNOEXEC SymLinksIfOwnerMatch ExecCGI Includes IncludesNOEXEC SymLinksIfOwnerMatch ExecCGI Includes IncludesNOEXEC SymLinksIfOwnerMatch ExecCGI  Includes  IncludesNOEXEC  SymLinksIfOwnerMatch  Indexes -Indexes

I am getting the following error:

Either all Options must start with + or -, or no Option may.

How can I fix this and still do the samething?

Better yet what does this line do and is it even needed?


Solution 1:

The answer to your question is contained within the error message.

The right thing to do in this case would be to smack whoever wrote that line, and make a list of each option specified. If it appears with a minus at all, put it in once with a minus. If it appears only bare or with a plus, put it in once with a plus.

I believe you just want this:

Options +SymLinksIfOwnerMatch +ExecCGI +Includes +IncludesNOEXEC -Indexes

Why this particular option set is required in that area, I don't know. But, feel free to read the documentation for an explanation of each one, and see how or if your use case requires it.