Add FastCGI support
Bug #447609 reported by
Mark Lee
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
loggerhead |
Fix Released
|
Medium
|
Unassigned |
Bug Description
Loggerhead should come with a FastCGI script, for the users whose webhosts will not let them proxy a serve-branches/
I currently have a proof-of-concept working, but in order to configure it, it requires a configuration file with a format different from loggerheadd. (Basically, it maps the config keys to the relevant command-line arguments of serve-branches.) There are two options to move forward:
* figure out a way to have both configuration formats coexist in the branch/tarball
* handle configuration directly in the FastCGI script (much like the bzr FastCGI script in the docs)
Related branches
lp://staging/~deuns-martinez/loggerhead/flup
Rejected
for merging
into
lp://staging/loggerhead
- Matt Nordhoff: Disapprove
-
Diff: 15 lines (+5/-0)1 file modifiedloggerhead/main.py (+5/-0)
Changed in loggerhead: | |
status: | New → Triaged |
importance: | Undecided → Medium |
Changed in loggerhead: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
I have managed to get SCGI working with trivial changes to the 1.17 startup script (main.py).
It uses flup, which supports SCGI and FastCGI equally, so it's nearly the same.
I replace the line: httpserver. serve(app, host=host, port=port)
with
from flup.server.scgi import WSGIServer
WSGIServer(app, bindAddress=(host, int(port))).run()
just use "from flup.server.fcgi import WSGIServer" if you want FastCGI.
I can confirm this script works great in the Cherokee web server.
This lack of feature is stupid to fix but annoying, I hope it gets mainline quickly.