> i am trying to get a remote machine working with pylons, apache and
> ssl. limitations that apply: only shell and https access, no
> fastcgi/mod_python.
>
> apache is up, cgi and mod_rewrite already tested and working. my
> pylons-app seems to be working, too (tested on localhost with w3m and
> paster serve). now i am trying to glue things together. my dispatch.cgi
> looks like this:
>
> ----------------------------------------
> #!/usr/bin/python
>
> from paste.deploy import loadapp
> wsgi_app = loadapp('config:/path/development.ini')
>
> if __name__ == '__main__':
> from flup.server.fcgi import WSGIServer
> WSGIServer(wsgi_app).run()
> ----------------------------------------
>
> as you can see i've taken the flup-one. (flup should be able to
> fallback to cgi if there is no fastcgi-request.)
I don't know if flup fallbacks, but there is a CGI WSGI server as part
of wsgiref
from wsgiref.handlers import CGIHandler
CGIHandler().run(wsgi_app)
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"pylons-discuss" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/pylons-discuss
-~----------~----~----~----~------~----~------~--~---