There's many questions about similar issues, but none in particular about the combination of the error 500 with Django. E.g. similar questions:
- client denied by server configuration
- Why does my migrated apache2-fastcgi-django solution give me 'AH01630: client denied by server configuration'?
- Getting client denied when accessing a wsgi graphite script
Apache error log:
[Wed Jun 19 18:41:44.364270 2019] [access_compat:error] [pid 9386:tid 140669708334848] [client 1.2.3.4:1948] AH01797: client denied by server configuration: /home/user/website/wsgi.py, referer: https://website.org/admin/login/?next=/admin/
The error is shown as:
Error 500: Internal Server Error
But this only appears when trying to access admin panel, not when browsing the pages, or downloading files behind Apache protected directories. All the Q/A's I could find talk about an error in the Apache settings, but it doesn't seem to be there (nothing was changed with Apache since install).