Error Reponse Codes & Custom Error Pages

 
Post new topic   Reply to topic    Aprelium Forum Index -> General Questions
View previous topic :: View next topic  
Author Message
Stone-D
-


Joined: 09 Jan 2004
Posts: 90

PostPosted: Sun Aug 01, 2004 5:58 pm    Post subject: Error Reponse Codes & Custom Error Pages Reply with quote

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 View user's profile Send private message
TRUSTAbyss
-


Joined: 29 Oct 2003
Posts: 3752
Location: USA, GA

PostPosted: Sun Aug 01, 2004 6:43 pm    Post subject: Reply with quote

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 View user's profile Send private message Visit poster's website
Stone-D
-


Joined: 09 Jan 2004
Posts: 90

PostPosted: Sun Aug 01, 2004 7:42 pm    Post subject: Reply with quote

Damn. Oh well, cheers for the verification. :P
_________________
--
Look, no SIG!
Back to top View user's profile Send private message
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Mon Aug 02, 2004 3:26 am    Post subject: Reply with quote

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 View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> General Questions All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group