ns_return should do it for you
e.g.

ns_return 401 text/html "Sorry but you can't come in, please......."


P

John Buckman wrote:

> if my ADP page runs
>
> <%
> ns_returnunauthorized
> ns_adp_abort ok
> %>
>
> AOLserver returns the default message:
> > Access Denied
> > The requested URL cannot be accessed because a valid username and 
> password are required.
>
> I'd like to replace this message with my own page, which would have 
> helpful information about how to join, if you lost your password, etc...
>
> Trouble is, that message is hard-coded into the C code function 
> Ns_ConnReturnUnauthorized.  I could issue a redirect, but that's 
> dangerous because some web browsers probe a page 1st to see if a 
> password is needed, and I don't want to mistakenly redirect somebody.
>
>     return Ns_ConnReturnNotice(conn, 401, "Access Denied",
>    "The requested URL cannot be accessed because a "
>    "valid username and password are required.");
>
> I'm tempted to add a C code patch here with a new config file 
> parameter to redefine the contents of this message.  Anyone have a 
> better suggestion?
>
> -john
>
>
> -- 
> 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.
>

-- 
Patrick O'Leary

AOL Search
Phone: + 1 703 265 1000 ext 31097

Smash forehead on keyboard to continue...


--
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.

Reply via email to