Hi,

I'm trying to convert an existing turbogears project (v1.0.7) to run
under lighttpd (1.4.19) using the SCGI interface as documented here:
http://docs.turbogears.org/1.0/LightTPD

However, I found that this breaks url handling in turbogears. For
example, in the old situation, this would work:

http://myhost/mypage/edit/2

I can confirm this still works by starting the application the old-
fashioned way using cherrypy. When I start the application as an SCGI
process (as documented above), I get this error:

The path '/edit/2' was not found.

Page handler: "The path '/edit/2' was not found."
Traceback (most recent call last):
  File ".../CherryPy-2.3.0-py2.5.egg/cherrypy/_cphttptools.py", line
123, in _run
    self.main()
  File ".../CherryPy-2.3.0-py2.5.egg/cherrypy/_cphttptools.py", line
258, in main
    page_handler, object_path, virtual_path =
self.mapPathToObject(path)
  File ".../CherryPy-2.3.0-py2.5.egg/cherrypy/_cphttptools.py", line
328, in mapPathToObject
    raise cherrypy.NotFound(objectpath)
NotFound: 404

It seems to have dropped the 'mypage' bit from the url.

It works somewhat if I request: http://myhost/mypage/mypage/edit/2,
except that all links generated in the resulting page are now prefixed
with the 'mypage/' path prefix. If I switch back to using cherrypy
directly, things work like a charm.

Is this a known bug? How can I fix this or troubleshoot this? It seems
to go wrong in parsing the URL handling.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" 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/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to