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

by d0001   Last Updated June 13, 2019 10:00 AM

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?



Answers 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.

Falcon Momot
Falcon Momot
November 28, 2014 23:17 PM

Related Questions


Updated September 05, 2018 17:00 PM

Updated July 31, 2015 14:00 PM

Updated June 17, 2015 23:00 PM

Updated June 27, 2015 18:00 PM

Updated April 25, 2019 09:00 AM