Re: [AOLSERVER] replacing default connection unauthorized message

2006-06-06 Thread John Buckman
On Jun 6, 2006, at 5:45 pm, patrick o'leary wrote: ns_return should do it for you e.g. ns_return 401 text/html "Sorry but you can't come in, please..." Your suggestion wasn't working for me wasn't working for me, and then looking at the C code I realized you need to also add a WWW- Aut

Re: [AOLSERVER] replacing default connection unauthorized message

2006-06-06 Thread patrick o'leary
Wondrous blue collar TV quote, The only thing in common about all the different ways to skin a cat, is that the cats don't like any of them ;-) Nathan Folkman wrote: > Here's another twist on this that I *think* could work for you: > >ns_section "ns/server/server1/redirects" >ns_para

Re: [AOLSERVER] replacing default connection unauthorized message

2006-06-06 Thread Nathan Folkman
Here's another twist on this that I *think* could work for you: ns_section "ns/server/server1/redirects" ns_param 404 "notfound.adp" notfound.adp: <% set string [ns_adp_parse -file /notfound.inc] ns_return "404" "text/html" $string %> As an added bonus, the included "not

Re: [AOLSERVER] replacing default connection unauthorized message

2006-06-06 Thread patrick o'leary
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 b

Re: [AOLSERVER] replacing default connection unauthorized message

2006-06-06 Thread Dossy Shiobara
On 2006.06.06, John Buckman <[EMAIL PROTECTED]> wrote: > <% > ns_returnunauthorized > ns_adp_abort ok > %> [...] > > 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... Here's an example of how to provide

[AOLSERVER] replacing default connection unauthorized message

2006-06-06 Thread John Buckman
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 info