Я пытаюсь получить доступ к веб-сайту, который я запускаю с Apache. Проблема в том, что я получаю ошибку 403 и попадаю на страницу ошибки отказа от прав. Бэкэнд и т. Д. Сам использует Django.Apache 403 Permission Denied
Что я получаю из журнала ошибок:
(13) Доступ запрещен: доступ к/индексу/отказано
Я также редактировал апачский по умолчанию конф к этому:
<VirtualHost *:80>
DocumentRoot /var/www
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerM$
Order allow,deny
Allow from all
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
# Possible values include: debug, info, notice, warn, $
# alert, emerg.
LogLevel warn
CustomLog /var/log/apache2/acess.log combined
ServerAdmin [email protected]
WSGIDaemonProcess djangoapps python-path=/home/djangoa$
WSGIProcessGroup djangoapps
WSGIScriptAlias//home/djangoapps/plugit/wsgi.py
<Directory /home/djangoapps/plugit>
<Files wsgi.py>
Require all granted
</Files>
</Directory>
</VirtualHost>
Загруженный (надеюсь) wsgi.py-файл не содержит больше содержимого по умолчанию. Я также установил www-data:www-data
на все в проекте.
Это должно быть задано в http://serverfault.com/ not stackoverflow –