/ Zope / Apsis / Pound Mailing List / Archive / 2009 / 2009-03 / location headers problems

[ << ] [ >> ]

[ Re: [Pound Mailing List] e503 no service / ... ] [ Multiple Address lines per listener / ... ]

location headers problems
Emilio Campos <emilio.campos.martin(at)gmail.com>
2009-03-16 14:00:49 [ FULL ]
Hi, i am configuring pound 2.4.4 with this listenhttp:

ListenHTTP
        Address 192.168.1.50
        Port    80
        RewriteLocation 1
        #RewriteDestination 1

        Service
                HeadRequire "Host: .*www.myweb.es.*"

                Session
                    Type Cookie
                    ID   "MYWEBSESSIONID"
                    TTL  300
                End

                BackEnd
                    Address 192.168.1.100
                    Port    10000
                End
                BackEnd
                    Address 192.168.1.101
                    Port    10000
                End

        End

End

It is correct, but i have problems with location headers,
the client put:

telnet www.myweb.es 80
GET /principal/

and I receive location header
Location /principal/index.php

NO PROBLEM, but if i put

telnet www.myweb.es 80
GET /principal  (without slash)

Location header receibed:
Location: http://www.myweb.es:10000/principal/index.php

and the client redirect to http://www.myweb.es:10000/principal/index.php

I think that rewritelocation 1 solve this problem but dont work,
I compiled pound 2.3.2 with this file configuration and work correctly, the
client dont receive the backend port. Why ?

I readed CHANGELOG for pound 2.4.4:
              -"fixed redirection problem (missing slash in
Location/Content-location)"

Thanks !
Attachments:  
text.html text/html 1806 Bytes

Re: [Pound Mailing List] location headers problems
Emilio Campos <emilio.campos.martin(at)gmail.com>
2009-03-20 12:31:19 [ FULL ]
some sugestion? some question? Any person can help me?

2009/3/16 Emilio Campos <emilio.campos.martin(at)gmail.com>
[...]
Attachments:  
text.html text/html 2497 Bytes

Re: [Pound Mailing List] location headers problems
Dave Steinberg <dave(at)redterror.net>
2009-03-20 16:04:26 [ FULL ]
>> telnet www.myweb.es 80[...]

This sounds like a problem with your backend.  Does the same thing 
happen if you connect directly and issue those same GET commands?

[...]

MailBoxer