|
/
Zope
/
Apsis
/
Pound Mailing List
/
Archive
/
2007
/
2007-11
/
Slow redirects with header location
[
Pound with Verisign Certificates / Pete ... ]
[
ANNOUNCE: Pound - reverse proxy and load balancer ... ]
Slow redirects with header location
Thorsten Kramm <kramm(at)abacho.net> |
2007-11-29 10:32:12 |
[ FULL ]
|
Hi Poundusers,
I notice a strange behavior on our websites.
When a page sends a now header pointing the browser to a new location,
it takes several seconds untill the browser goes to the new location.
If the browser get the new header directly from the webserver, without
pound in the middle, there is no delay and the new location is reached
immediately.
So I suspect that pound is the problem.
You can see the delay here:
http://kirchenboerse.de/index2.php
The PHP file contains the following:
<?php
header('Location:http://www.kirchenboerse.de');
exit;
?>
If you point your browser to
http://kirchenboerse.de/index.php
you will be redirected with an
<meta http-equiv="Refresh" content="0; URL=http://www.kirchenboerse.de">
which is much faster then the above php version.
Has anyone any idea what the problem is.
Thanks for your hints.
Mit freundlichen Grüßen,
Abacho Aktiengesellschaft
i. A. Thorsten Kramm
Systemadministrator
* Wir stellen ein: *
Systemadministrator Linux, PHP/MySQL Programmierer
http://jobs.abacho.net
---------------------------------------------------------------
Abacho Aktiengesellschaft E-Mail: Kramm(at)Abacho.net
Gerhard-Hoehme-Allee 1 Telefon: +49 (0)2131 5606-245
41466 Neuss Telefax: +49 (0)2131 5606- 99
---------------------------------------------------------------
Vorstand: Ingo Endemann (Vorsitzender)
Andreas Stietzel
Vorsitzender des Aufsichtsrates: Dr. Gereon Mertens
Sitz der Gesellschaft: Neuss Handelsregister Neuss, HRB 9736
---------------------------------------------------------------
|
|
|
Re: [Pound Mailing List] Slow redirects with header location
Axel Sauerhöfer <asauerhoefer(at)nero.com> |
2007-11-29 12:06:20 |
[ FULL ]
|
Thorsten Kramm schrieb:[...]
Hi,
maybe you can try following php code, put a blank between Location: and
the url.
<?php
header('Location: http://www.kirchenboerse.de');
exit;
?>
best regards,
axel
[...]
|
|
|
Re: [Pound Mailing List] Slow redirects with header location
Thorsten Kramm <kramm(at)abacho.net> |
2007-11-29 12:55:23 |
[ FULL ]
|
Thanks for the tip.
I tryed it but it does not make any diffrence.
regards
Thorsten
Axel Sauerhöfer schrieb:
> Hi,
>
> maybe you can try following php code, put a blank between Location: and
> the url.
>
> <?php
> header('Location: http://www.kirchenboerse.de');
> exit;
> ?>
>
> best regards,
>
> axel
>
[...][...]
[...]
|
|
|
Re: [Pound Mailing List] Slow redirects with header location
Michal Taborsky - Internet Mall <michal.taborsky(at)mall.cz> |
2007-11-30 10:09:41 |
[ FULL ]
|
Hello Thorsten,
my guess is, that the server (I see you are using lighttpd/1.4.17) is
holding the response for some reason. I'd be looking into the
PHP/lighttpd integration, if I were you. Maybe the PHP does not
terminate properly and the web server is waiting if it sends something
more? Do you get the same delay when you access the server directly, not
thru pound?
Also, I recommend you use "301 Moved Permanently", instead of the
default "302 Found". But it's unrelated to this problem.
MT.
Thorsten Kramm napsal(a):[...]
[...]
|
|
|
Re: [Pound Mailing List] Slow redirects with header location
Thorsten Kramm <kramm(at)abacho.net> |
2007-11-30 11:18:32 |
[ FULL ]
|
Hello Michal,
thanks for your hints.
If I point the browser directly to the webserver, without pound in the
midddle, the redirection takes effect immediately.
Later I will try if apache shows the same behavior.
Regards Thorsten
Michal Taborsky - Internet Mall schrieb:[...][...][...]
[...]
|
|
|
|