How do you set up a Python WSGI server under IIS?

断了今生、忘了曾经 提交于 2019-12-09 14:03:31

问题


I work in a Windows environment and would prefer to deploy code to IIS. At the same time I would like to code in Python.

Having read that IIS can run fastCGI application, I went to the IIS site where it describes in detail how to get PHP up and running but not much about anything else.

Does anyone have experience getting a Python framework running under IIS using something other that plain old CGI?

If so can you explain to direct me to some instructions on setting this up?


回答1:


There shouldn't be any need to use FastCGI. There exists a ISAPI extension for WSGI.




回答2:


Microsoft itself develops wfastcgi (source code) to host Python code on IIS.




回答3:


We can use iiswsgi framework to setup WSGI over IIS since it is compatible with IIS web server's FastCGI protocol.It's bundled with distutils for building, distribution and installing packages with the help of Microsoft Web Deploy and Web Platform Installer.

For more info refer the following link:

Serving Python WSGI applications natively from IIS



来源:https://stackoverflow.com/questions/47253/how-do-you-set-up-a-python-wsgi-server-under-iis

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!