web服务器 - ubuntu下布置apache加wsgi加python
滿天的星座
滿天的星座 2017-04-24 15:58:52
0
1
807

ubuntu下布置apache加wsgi加python

通过外网访问服务器,
可以读取网站目录,可以识别html结尾的index文件,
但是无法加载.py的网页文件

error.log提示打开.py的文件失败,no modules named web
但是python 里确实装好了web.py

滿天的星座
滿天的星座

reply all(1)
PHPzhong


The final solution was a bit unexpected. It was actually because my urls={'/','hello'}
According to the way web.py is written, it will make an error
After checking the official document of web.py, I got into trouble. Once, I just added .* after / and it was successful. It means that I need to supplement the operating principle of wsgifunc. .

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template