Option All not allowed here

anton1982

Verified User
Joined
Jun 12, 2016
Messages
43
I have problems with a Magento 2 installation. After a new install or an update the images, javascript etc. does not get loaded because of the .htaccess files in certain directories. In the error log is:

{path}.htaccess: Option All not allowed here, referer: https://domain.com/

I did a lot of searching and tried some custom httpd options such as:

CUSTOM3
AllowOverride All
Allow from All

But none off all seems to work. Can anyone help?
 
Hi Alex, Also tried that in the custom 3 field. But it gets added to the config before the original one, so I guess it does not work. These are the first 3 lines of the <Directory>. The first line is the addition from custom 3:

<Directory /home/theuser/domains/thedomain/public_html>
Options All
AllowOverride AuthConfig FileInfo Indexes Limit Options=Indexes,Includes,IncludesNOEXEC,MultiViews,SymLinksIfOwnerMatch,FollowSymLinks,None
Options -ExecCGI
php_admin_flag engine ON


It should override the existing right?
 
Try and re-define the variable:

Code:
|?ALLOW_OVERRIDE=AllowOverride AuthConfig FileInfo Indexes Limit Options=Indexes,Includes,IncludesNOEXEC,MultiViews,SymLinksIfOwnerMatch,FollowSymLinks,None|

in CUSTOM3 section:

Code:
|?ALLOW_OVERRIDE=AllowOverride All|

Please note I wouldn't do it for my own and my customers as it might bring issues with a security. And I don't understand why do you need
Code:
Options All
?
 
It's because Magento 2 defaults this in their .htaccess files. You can change the htaccess files but every time you run an update the defaults are rewritten.
The first line in the specific .htaccess is

Options All -Indexes

On line 23 is: Options +FollowSymLinks if I change this to Options +SymLinksifOwnerMatch the problem is also gone. But again, after Magento update this is overwritten.

Maybe there is another option to get this working? Without any real security issues like you say?
 
Back
Top