- 论坛徽章:
- 0
|
环境:
apache+windows
httpd.conf
LoadModule wsgi_module modules/mod_wsgi-win32-ap22py26-2.7.so
对于站点的配置:
<VirtualHost *:8888>
ServerName aaa
DocumentRoot "D:/web/docute.com"
WSGIScriptAlias / "D:/web/docute.com/main.py"
Alias /static "D:/web/docute.com/static/"
AddType text/html .py
<Directory "D:/web/docute.com">
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
用web.py的debug模式开启8080端口是可以运行的,但就无法运行在apache上,直接访问时出现404,apache错误日志为:
Target WSGI script 'D:/web/docute.com/main.py' does not contain WSGI application 'application'.
实在不知道问题出在哪了~~ |
|