我在服务器上部署了django应用,当我尝试在Web浏览器上获取页面时,页面上只能看到“错误请求(400)”。
sudo tail /var/log/apache2/error.log
中没有错误
artifai-website.conf
<VirtualHost *:80>
DocumentRoot "/home/artifai/artifai_website/"
WSGIScriptAlias / /home/artifai/artifai_website/src/artifai_website/wsg$
WSGIDaemonProcess artifai_website python-path=/home/artifai/artifai_web$
WSGIProcessGroup artifai_website
<Directory /home/artifai/artifai_website/src/artifai_website>
<Files wsgi.py>
Require all granted
</Files>
</Directory>
Alias /static /home/artifai/artifai_website/src/static
<Directory /home/artifai/artifai_website/src/static>
Require all granted
</Directory>
</VirtualHost>