用django创建了一个小型本地Web应用程序后,我希望能够通过使用apache,nginx和gunicorn托管它来远程访问它。但是我在/etc/apache2/apache2.conf
中输入的目录上有错误启动apache时出现以下错误:
"Job for apache2.service failed because the control process exited with error code"
详细记录后,我看到此错误:
"apache2: Syntax error on line 235 of /etc/apache2/apache2.conf : Expected </Directory\xc2\xa0/home/pi/Desktop/ecole> but saw </Directory>"
我在apache2 conf文件中添加的内容:
WSGIScriptAlias / /home/pi/Desktop/ecole/école/école/wsgi.py
WSGIPythonPath /home/pi/Desktop/ school/
<Directory /home/pi/Desktop/school>
<Files wsgi.py>
Order deny,allow
Allow from all
</Files>
</Directory>
我不明白问题所在,谢谢您回来。