V
V
Vampre2018-09-30 15:26:25
Django
Vampre, 2018-09-30 15:26:25

Why doesn't nginx have access to media files?

Please help me figure it out! When loading the page, media files from the media folder are not loaded - in the logs permission denied 13, while if you manually allow access to the www-data group, then everything works, BUT until a new media file is loaded or a subdirectory is created in media - after that, nginx again cannot access these new files.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
F
FulTupFul, 2018-09-30
@FulTupFul

This is selinux. Disable it setenforce 0

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question