I can access subdirectory, but not files within it

Turns out the file was the problem, as @TheDeadMedic suspected. The permissions were 640. After changing them to 644, the problem was solved!

Thanks for the help.