Hi everyone,
I've run into an issue with internal redirects and can't figure out
what is going on.
I want 404 requests to be redirected to /404/index.html, a static
file. I want the url to stay exactly the same.
I have a fairly straightforward nsd.tcl with little modification.
I had the following code in the config:
ns_section "ns/server/${servername}/redirects"
ns_param 404 "/404/index.html"
This worked perfectly under aolserver 4.0.10. I've just upgraded to
4.5 and noticed that the 404 responses have returned to the default
aolserver page.
I checked the wiki, seemed the config was still right. I checked the
mailing list and found a couple of messages here http://
comments.gmane.org/gmane.comp.web.aolserver/13191
Reading Dossy's message, tried a different way just for the heck of it.
Changed nsd.tcl to:
ns_section "ns/server/${servername}/redirects"
ns_param 404 /404.adp
Created /404.adp with the following line of code:
<%
ns_returnnotice 404 "sorry" "not found!"
%>
Now... if I visit a bogus url, I *still* receive the default
aolserver not found page. If I visit /404.adp directly, I
successfully get the "sorry not found" message. So, the redirects
section seems to have no affect at server startup. I've tried a few
other methods with the same results.
I've gone back and verified that all of this works correctly under
4.0.10. I guess either this is a bug, or just a change in how to
handle this.
Has anyone else run into this problem? I'd appreciate if anybody
could give a bit of time to sorting this out.
Thank you!
---
Derek Keller
[EMAIL PROTECTED]
http://cowboyoftexas.com/
--
AOLserver - http://www.aolserver.com/
To Remove yourself from this list, simply send an email to <[EMAIL PROTECTED]>
with the
body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject:
field of your email blank.