Share

AOLserver

Tracker: Bugs

5 404 redirects not working - ID: 1518426
Last Update: Comment added ( jgdavidson )

Internal redirects specified in the server config file stopped working in
aolserver 4.5.

Start 4.0.10 using the attached nsd.tcl. Go to a nonexistant url, you get

the custom 404 response served from /404/index.html.

Start 4.5 using the same nsd.tcl. Go to a nonexistant url, you get the
default aolserver 404 response.

Doesn't matter what you set the "ns_param 404" value to be -- it gets
ignored. No related messages in the server logs.


derek ( bill-kellerman ) - 2006-07-06 22:42

5

Closed

Fixed

Jim Davidson

Configuration: Server

aolserver_v45

Public


Comments ( 2 )

Date: 2006-07-07 23:18
Sender: jgdavidsonProject Admin

Logged In: YES
user_id=20624

I think this is correct. Technically, setting a redirect does an
"internal redirect"
to the cooresponding request procedure. In this case it's the file
response code
(called the "fastpath") which generates a normal 200 response. You could

instead set the redirect to an ADP page with <% ns_conn status 404 %> to
get
back a 404 status if that's what's needed.


Date: 2006-07-07 21:37
Sender: bill-kellerman

Logged In: YES
user_id=1551273

Works now. However, the custom 404 page is returning a 200. Is that
supposed to happen?


Attached File ( 1 )

Filename Description Download
nsd.tcl simple config with 404 redirect specified Download

Changes ( 5 )

Field Old Value Date By
status_id Open 2006-07-07 03:28 jgdavidson
resolution_id None 2006-07-07 03:28 jgdavidson
assigned_to nobody 2006-07-07 03:28 jgdavidson
close_date - 2006-07-07 03:28 jgdavidson
File Added 184112: nsd.tcl 2006-07-06 22:42 bill-kellerman