CherryPy3和IIS 6.0 [英] CherryPy3 and IIS 6.0

查看:47
本文介绍了CherryPy3和IIS 6.0的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个使用Cherrypy框架的小型Python Web应用程序.我绝不是Web服务器方面的专家.

I have a small Python web application using the Cherrypy framework. I am by no means an expert in web servers.

我让Cherrypy在我们的Ubuntu服务器上使用mod_python与Apache一起工作.但是,这一次,我必须使用Windows 2003和IIS 6.0来托管我的网站.

I got Cherrypy working with Apache using mod_python on our Ubuntu server. This time, however, I have to use Windows 2003 and IIS 6.0 to host my site.

该站点可以作为独立服务器完美运行-当让IIS运行时,我真是太迷茫了.我花了整整一天的时间在Google上搜索,并且盲目尝试任何方法来使它运行.

The site runs perfectly as a stand alone server - I am just so lost when it comes to getting IIS running. I have spent the past day Googling and blindly trying any and everything to get this running.

我安装了网站告诉我的所有各种工具(Python 2.6,CherrpyPy 3,ISAPI-WSGI,PyWin32),并阅读了所有我能读的文档.该博客最有帮助:

I have all the various tools installed that websites have told me to (Python 2.6, CherrpyPy 3, ISAPI-WSGI, PyWin32) and have read all the documentation I can. This blog was the most helpful:

http://whatschrisdoing.com/blog/2008/07/10/turbogears-isapi-wsgi-iis/

但是我仍然对运行网站所需要的东西一无所知.我找不到任何完整的示例或入门方法.希望这里有人能帮忙!

But I am still lost as to what I need to run my site. I can't find any thorough examples or how-to's to even start with. I hope someone here can help!

干杯.

推荐答案

好的,我知道了.感谢Jason和他的所有帮助.我需要打电话

OK, I got it working. Thanks to Jason and all his help. I needed to call

cherrypy.config.update({
  'tools.sessions.on': True
})
return cherrypy.tree.mount(Root(), '/', config=path_to_config)

我在[/]下的配置文件中有此选项,但由于某种原因,它不喜欢这样.现在,我可以启动并运行我的Web应用程序-然后,我想我将尝试弄清楚为什么它需要该配置更新,并且不喜欢我拥有的配置文件...

I had this in the config file under [/] but for some reason it did not like that. Now I can get my web app up and running - then I think I will try and work out why it needs that config update and doesn't like the config file I have...

这篇关于CherryPy3和IIS 6.0的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆