[Twisted-web] Using web2 to run a Cherrpy site
dreid at dreid.org
Tue Mar 20 09:24:03 CST 2007
-----BEGIN PGP SIGNED MESSAGE-----
On Mar 18, 2007, at 7:08 PM, David Konerding wrote:
> I am using web2 to run a cherrypy server at the root of the site
> using WSGI.
Which version of cherrypy are you using? I did an easy_install
cherrypy and got 3.0.1 but your code didn't work on it. wsgiApp is
somewhere else now or something.
> I've got a nearly working set up, the only problem is that when a
> request comes in for the root of the site, it gets redirected
> back to itself:
> % curl http://localhost:8080
> This resource resides temporarily at <a href='http://localhost:
> 8080/'> http://localhost:8080/</a>
There are only 2 places we redirect like this, if we're a subclass of
resource.Resource with addSlash=True and the url didn't end in a /,
and if we're a static.File attached to a directory and the url didn't
end in a /.
But WSGIResource does not do either of those things. Which leads me
to believe that perhaps cherrypy is causing the redirect? I don't
know, let me know what cherrypy version you're using and I'll try to
play with it later.
"Usually the protocol is this: I appoint someone for a task,
which they are not qualified to do. Then, they have to fight
a bear if they don't want to do it." -- Glyph Lefkowitz
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)
-----END PGP SIGNATURE-----
More information about the Twisted-web