I have two identical files (file contents are simply asd
) with 644
permissions and owned by root:root
, one created at 19:24 and the other created at 19:25.
The first file was uploaded via SFTP as root
and the other one was created on the server directly by a sudoer. The files were then moved to the document root with one of them named index.html
.
If the first file is named index.html
, I get a 403-response when visiting my website:
Forbidden
You don't have permission to access /index.html on this server.
However, if the second file is named index.html
it is served as expected and I can see asd
on the page.
Result of ll
when I get 403 Forbidden:
I am completely dumbfounded. What is happening here?