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
Karl N. Redman
2004-09-23
Here is a quick note/addendum in case someone else is having trouble
connecting the dots on the problem I outlined before (I feel a bit silly
now). The problem I was having goes away with a proper ServerName
setting in apache's http.conf file. Something like: ServerName 123.45.67.89

I need fully qualified URIs anyway so localhost is fine there for me.

just 2 more cents worth,
Karl N. Redman

Neil Schemenauer wrote:

>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