S
S
sadieff2018-02-28 11:09:09
CMS
sadieff, 2018-02-28 11:09:09

Why does it give a Forbidden error when accessing files?

There is a file /assets/components/modxtalks/ejs/comment.ejs
when accessing it I get a Forbidden error: https://yadi.sk/i/wMdAruKT3SrL77
Although there are deleted_comment.ejs and new_file.txt files in the same directory, they open no problem. Both files have permissions set to 777: https://yadi.sk/i/oTMptM6_3SrLow
There is an htaccess file at the root, but it contains only redirects and nothing from the linked comment.ejs.
But comment.ejs doesn't want to open. Tell me, in which direction to dig?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrey Mikhalev, 2018-02-28
@sadieff

1. on 1 screen you are not accessing a file, but a directory! That's why you get a 403 error.
2. Never use 777 permissions.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question