Skip to content

Commit

Permalink
updated docs on FastCGI deployment with Lighty
Browse files Browse the repository at this point in the history
Signed-off-by: Armin Ronacher <armin.ronacher@active-4.com>
  • Loading branch information
fmw authored and mitsuhiko committed Feb 5, 2011
1 parent dc53e06 commit da20af1
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions docs/deployment/fastcgi.rst
Expand Up @@ -18,9 +18,10 @@ First you need to create the FastCGI server file. Let's call it
#!/usr/bin/python
from flup.server.fcgi import WSGIServer
from yourapplication import make_app

application = make_app()
WSGIServer(application).run()
if __name__ == '__main__':
application = make_app()
WSGIServer(application).run()

This is enough for Apache to work, however ngingx and older versions of
lighttpd need a socket to be explicitly passed to communicate with the FastCGI
Expand Down Expand Up @@ -70,7 +71,8 @@ work in the URL root you have to work around a lighttpd bug with the

Make sure to apply it only if you are mounting the application the URL
root. Also, see the Lighty docs for more information on `FastCGI and Python
<http://redmine.lighttpd.net/wiki/lighttpd/Docs:ModFastCGI>`_.
<http://redmine.lighttpd.net/wiki/lighttpd/Docs:ModFastCGI>`_ (note that
explicitly passing a socket to run() is no longer necessary).

Configuring nginx
=================
Expand Down

0 comments on commit da20af1

Please sign in to comment.