Invalid command 'WSGIScriptAlias', perhaps misspelled or defined by a module not included in the server configurationAction 'configtest' failed

大兔子大兔子 提交于 2019-11-28 09:37:48

Try to enable wsgi mod in Apache

sudo a2enmod wsgi

If you come across below error

ERROR: Module mod-wsgi does not exist!

You will have to install mod wsgi as below. What you have to do is run the following commands,

sudo apt-get install libapache2-mod-wsgi
sudo a2enmod wsgi
sudo service apache2 restart

To enable wsgi_mod in httpd, install the module

sudo yum mod_wsgi

and make sure to load the module in the httpd config file

sudo nano /etc/httpd/conf/httpd.conf

then add the following line in the config file, to the list of other loaded module:

LoadModule wsgi_module modules/mod_wsgi.so
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!