GithubHelp home page GithubHelp logo

isabella232 / iiswsgi Goto Github PK

View Code? Open in Web Editor NEW

This project forked from netzob/iiswsgi

0.0 0.0 0.0 123 KB

Serve WSGI apps using IIS's modified FastCGI support.

Home Page: http://pypi.python.org/pypi/iiswsgi

iiswsgi's Introduction

iiswsgi

The iiswsgi module implements a FastCGI to WSGI gateway that is compatible with IIS's variation of the FastCGI protocol. In particular, it supports using STDIN_FILENO opened twice, once each approximating the recv and send end of a socket as is specified in FastCGI.

Quick Start

Use IIS's AppCmd.exe to install a new FastCGI application. You can find it at %ProgramFiles%\IIS Express\appcmd.exe for WebMatrix/IIS Express or %systemroot%\system32\inetsrv\AppCmd.exe for IIS. Note that you need to replace %SystemDrive%\Python27\Scripts\test.ini with the full path to a Paste Deploy INI configuration file that defines the WSGI app and IISWSGI-Test with the name of your app as IIS will see it:

> appcmd.exe set config -section:system.webServer/fastCgi /+"[fullPath='%SystemDrive%\Python27\python.exe',arguments='-u %SystemDrive%\Python27\Scripts\iiswsgi-script.py -c %SystemDrive%\Python27\Scripts\test.ini',maxInstances='%NUMBER_OF_PROCESSORS%',monitorChangesTo='%SystemDrive%\Python27\Scripts\test.ini']" /commit:apphost
> appcmd.exe set config -section:system.webServer/handlers /+"[name='IISWSGI-Test',path='iiswsgi-test.fcgi',verb='*',modules='FastCgiModule',scriptProcessor='%SystemDrive%\Python27\python.exe|-u %SystemDrive%\Python27\Scripts\iiswsgi-script.py -c %SystemDrive%\Python27\Scripts\test.ini']" /commit:apphost

See the IIS FastCGI Reference for more details on how to configure IIS for FastCGI.

Sample Package

The sample.msdeploy sub-directory can be used to build a sample MSDeploy package to be used with the web-pi.xml file as a custom Web Platform Installer feed to test or as a basis for building your own packages and custom feeds.

  1. Exit the Web Platform Installer

    To make sure it uses the current version of the package and feed.

  2. Build the package

    A script is provided to make this easier. Change to the directory containing this file in a cmd.exe prompt and run the following command:

    >C:\Python27\python.exe build_package.py

    That will build the package, clear the WebPI caches, and update the custom feed.

  3. Point WebPI to the local feed

    Skip this if you've already done it before.

    Force WebPI to use the modified feed. Use the WebPI options screen to remove any previous Plone installer feeds and adding file:///C:/.../iiswsgi/web-pi.xml replacing ... with the appropriate path.

  4. Install the package in WebPI

    Use the search box in WebPI to search for iiswsgi, click Add then click the Install button below and follow the instructions.

iiswsgi's People

Contributors

rpatterson avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.