View previous topic :: View next topic |
Author |
Message |
Stone-D -
Joined: 09 Jan 2004 Posts: 90
|
Posted: Sun Aug 01, 2004 5:58 pm Post subject: Error Reponse Codes & Custom Error Pages |
|
|
I host two sites using abyss :
http://myserver:88/
http://myserver:89/
http://myserver:80/ is currently hosted by mailtraq, which redirects accordingly based on the HOST. I want abyss to do this job.
I have written a perl script which I've set to be the error page responsible for 404, however, Abyss does not allow me to do further redirection.
Is this intentional or a bug?
My script is set to send the following to the client for redirection :
Code: |
#!/usr/bin/perl
$header = "HTTP/1.1 302 Moved Temporarily\n";
$header .= "Location: http://www.aprelium.com/\n\n";
print $header;
|
Test this by copying the above code into a perl script then setting it as the error page for code 404.
It *should* take you to www.aprelium.com, but it doesn't. The standard 404 shows up instead.
By looking at the logs and monitoring header transactions, Abyss transmits header lines if no matching line is provided by the script.
With error pages, however, if the script does not have any actual content or is trying to redirect or change the status, Abyss will ignore it and default to the original error page. _________________ --
Look, no SIG! |
|
Back to top |
|
 |
TRUSTAbyss -
Joined: 29 Oct 2003 Posts: 3752 Location: USA, GA
|
Posted: Sun Aug 01, 2004 6:43 pm Post subject: |
|
|
This is indeed a bug , I have tested this on PHP also using header() and
it seems that Abyss does not correctly handle custom errors that use a
redirect header in the code but im not sure , Aprelium should look into it. |
|
Back to top |
|
 |
Stone-D -
Joined: 09 Jan 2004 Posts: 90
|
Posted: Sun Aug 01, 2004 7:42 pm Post subject: |
|
|
Damn. Oh well, cheers for the verification. :P _________________ --
Look, no SIG! |
|
Back to top |
|
 |
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Mon Aug 02, 2004 3:26 am Post subject: |
|
|
Stone-D,
Yes, this is a bug. We'll fix it in the next update. Thank you for reporting it. _________________ Support Team
Aprelium - http://www.aprelium.com |
|
Back to top |
|
 |
|