durusmail: quixote-users: scgi vs apache redirection to localhost
scgi vs apache redirection to localhost
2004-09-23
2004-09-23
2004-09-23
scgi vs apache redirection to localhost
Neil Schemenauer
2004-09-23
On Thu, Sep 23, 2004 at 10:42:20AM -0500, Karl N. Redman wrote:
> a link that looks like 
> yields a page served up as http://localhost/foo/blecch/

Quixote needs to build an absolute URL when doing the redirect.  I
suspect it is getting the hostname wrong.  You could try adding:

    print 'server', request.get_server()

somewhere in your code.  I'm guessing that it will print
'localhost'.  You can look at HTTPRequest.get_server() to see how
Quixote determines the server name.

  Neil

reply