错误使用的Apache2.2配置mod_wsgi的 [英] error in configure mod_wsgi with Apache2.2
问题描述
我是按照这个<一个href=\"http://pradyumnajoshi.word$p$pss.com/2009/06/09/setting-up-mod_wsgi-for-apache-and-django-on-windows/\" rel=\"nofollow\">http://pradyumnajoshi.word$p$pss.com/2009/06/09/setting-up-mod_wsgi-for-apache-and-django-on-windows/
我使用python2.6的,的Apache2.2,Django1.3和Windows XP上的mod_wsgi> 3。现在我已经安装了Apache其正确运行良好。我有添加下面一行在httpd.conf文件: -
的LoadModule wsgi_module模块/ mod_wsgi.so
现在,我重新启动我的Apache服务器,它运行良好。但是,当我在httpd.conf中添加以下行: -
I am using python2.6, Apache2.2, Django1.3 and mod_wsgi>3 on windows xp. now I have installed Apache correctly it is running well. and I have add the following line in httpd.conf file:- LoadModule wsgi_module modules/mod_wsgi.so Now i restart my Apache server It's running well. But when I have add the following lines in httpd.conf:-
WSGIScriptAlias /wsgi "C:/wsgi_app/wsgi_handler.py"
<Directory "C:/wsgi_app">
AllowOverride None
Options None
Order deny,allow
Allow from all
</Directory>
然后重新启动我的Apache服务器,它给错误的提示请求操作失败
Then restart my Apache server it give error on the prompt "The request operation has failed"
请帮我,我在python新的。
please help me I am new in python.
感谢你。
推荐答案
请确保您有在目录C wsgi_handler.py文件:/ wsgi_app结果
问题可能是你所引用的象征。
着:/wsgi_app/wsgi_handler.py CC:/wsgi_app/wsgi_handler.py和C:/ wsgi_app与C:/ wsgi_app代替。
make sure you have wsgi_handler.py file in the directory C:/wsgi_app.
problem may be the symbol with which you are quoting.
replace "C:/wsgi_app/wsgi_handler.py" with "C:/wsgi_app/wsgi_handler.py" and "C:/wsgi_app" with "C:/wsgi_app".
这篇关于错误使用的Apache2.2配置mod_wsgi的的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!