baseUrlFilter.on=True
baseUrlFilter.baseUrl = "http://my.site.com"
cherrypy.HTTPRedirect(turbogears.url("/relative_url/")) should then
work.
I believe I might be experiencing the same bug. I'm running TurboGears
(latest stable version) behind Apache and mod_python via mpcp. My
problem is not with redirects though, but that I can't place the
application anywhere except on the virtual host root.
I want to place my application on a path like
http://www.server.is/application/ - but I get an 404 with the following
traceback:
Traceback (most recent call last):
File
"/usr/lib/python2.4/site-packages/CherryPy-2.1.0-py2.4.egg/cherrypy/_cphttptools.py",
line 271, in run
main()
File
"/usr/lib/python2.4/site-packages/CherryPy-2.1.0-py2.4.egg/cherrypy/_cphttptools.py",
line 497, in main
page_handler, object_path, virtual_path = mapPathToObject(path)
File
"/usr/lib/python2.4/site-packages/CherryPy-2.1.0-py2.4.egg/cherrypy/_cphttptools.py",
line 748, in mapPathToObject
raise cherrypy.NotFound(path)
NotFound: 404: The path '/timaskraning/' was not found.
I've tried both baseUrlFilter and server.webpath, I even tried adding
the Cp-Location header to the request in httpd.conf. Nothing helps..
Am I doing something wrong?
Arnar