安裝mod_wsgi的時候我已經安裝了從源頭的mod_wsgi使用python2.7這樣的:錯誤蟒蛇2.7
git clone https://github.com/GrahamDumpleton/mod_wsgi.git
./configure --with-python=/usr/bin/python2.7
make
make install
當我試着啓動Apache,我得到的錯誤:
Starting httpd: Syntax error on line 1020 of /etc/httpd/conf/httpd.conf:
Invalid command 'WSGIScriptAlias', perhaps misspelled or defined by a module not included in the server configuration
[FAILED]
我的httpd.conf如下所示:
Alias /static/ /var/www/html/django/shared/static/
<Directory /var/www/html/django/shared/static/>
Order deny,allow
Allow from all
</Directory>
WSGIScriptAlias//var/www/html/django/wsgi.py
WSGIPythonPath /var/www/html/django
<Directory /var/www/html/django>
<Files wsgi.py>
Order deny,allow
Allow from all
</Files>
</Directory>
爲什麼apache沒有找到mod_wsgi?
你實際上是否告訴Apache加載模塊? – abarnert 2014-10-08 23:16:28
@abarnert你知道我是怎麼做到的? – Atma 2014-10-08 23:41:41