我想要使用apache和mod_wsgi打开django服务器。 我写了如下
sudo apt-get install apache2
sudo apt-get install libapache2-mod-wsgi
创建django项目和应用程序,然后添加我的bot设置.py 创建虚拟环境并使用 并在seoultech中添加以下代码/wsgi.py/django=mydirectory/seoultech=project/bot=app/
^{pr2}$和cd/etc/apache2/site available/000-默认.conf 添加代码
^{3}$但是sudo apachectl-k启动时出错了
'AH00526: Syntax error on line 1 of /etc/apache2/sites-enabled
/000default.conf:Invalid command 'WSGIDaemonProcess', perhaps misspelled
or defined by a module not included in the server configuration Action '-k
start' failed.The Apache error log may have more information.'
我期待着帮助你
将WSGIDaemonProcess放在VirtualHost内部以消除此错误。在
相关问题 更多 >
编程相关推荐