[Twisted-web] Using web2 to run a Cherrpy site

David Reid dreid at dreid.org
Tue Mar 20 09:24:03 CST 2007

Hash: SHA1

Hi David,

On Mar 18, 2007, at 7:08 PM, David Konerding wrote:

> Hi,
> 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.

- -David

"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

Version: GnuPG v1.4.5 (Darwin)


More information about the Twisted-web mailing list