On 01 Dec 2005 11:58:59 -0200, Jorge Godoy <[EMAIL PROTECTED]> wrote:
> What's the setup that I have to do to be able to pass a relative URL to
> "turbogears.url" (for using redirects with CherryPy) and have it include the
> hostname, instead of using "localhost"?
>
> Today when I issue a raise
> cherrypy.HTTPRedirect(turbogears.url("/relative_url/")) it redirects me to
> "http://localhost:8080/relative_url"; instead of
> "http://my.site.com/relative_url";.  If I hardcode the URL and use
> cherrypy.HTTPRedirect("http://my.site.com/relative_url/";) it works perfectly,
> but then I loose the ability of "moving" things around easily (well, I need a
> "sed" script to fix this for the production server, but that's just it...).

Are you proxying behind Apache or something? If so, this would make sense

You should be able to set server.webpath in your config file to
http://my.site.com

Kevin

Reply via email to