cancel
Showing results for 
Search instead for 
Did you mean: 

Your web server is set up incorrectly and allows unauthorized access to sensitive files.

SOLVED

Your web server is set up incorrectly and allows unauthorized access to sensitive files.

Good evening.
In the admin of my magento 2.3.5-p2 site there is the following error: Your web server is set up incorrectly and allows unauthorized access to sensitive files. Please contact your hosting provider.

I have tried several solutions online but have not solved.

How can I solve?

Thanks

1 ACCEPTED SOLUTION

Accepted Solutions

Re: Your web server is set up incorrectly and allows unauthorized access to sensitive files.

Hello @nipiol 

 

It looks like this is server-level permission issues maybe your etc* and other directories files are accessible due to not giving proper permission.

 

You might have already tried this solutions, still take a reference from following shared link to resolve this issue.

 

https://magento.stackexchange.com/questions/101469/magento-2-your-web-server-is-set-up-incorrectly-a... 

 

https://www.mageplaza.com/kb/your-web-server-set-up-incorrectly-allows-unauthorized-access-sensitive... 

 

Also put your store into the production mode instead of default/developer

 

Convert your site from HTTP to HTTPs.

 

Look to evaluate all the above points, Hope it helps ! 

 

if issue solved,Click Kudos & Accept as Solution

View solution in original post

1 REPLY 1

Re: Your web server is set up incorrectly and allows unauthorized access to sensitive files.

Hello @nipiol 

 

It looks like this is server-level permission issues maybe your etc* and other directories files are accessible due to not giving proper permission.

 

You might have already tried this solutions, still take a reference from following shared link to resolve this issue.

 

https://magento.stackexchange.com/questions/101469/magento-2-your-web-server-is-set-up-incorrectly-a... 

 

https://www.mageplaza.com/kb/your-web-server-set-up-incorrectly-allows-unauthorized-access-sensitive... 

 

Also put your store into the production mode instead of default/developer

 

Convert your site from HTTP to HTTPs.

 

Look to evaluate all the above points, Hope it helps ! 

 

if issue solved,Click Kudos & Accept as Solution

View solution in original post