I've installed a vanilla AOLServer 4.5 and I'am trying to customize the
404 Page.
I've this block in my tcl configuration:
ns_section "ns/server/${servername}/redirects"
ns_param 404 "/notfound.tcl" ;# Not Found error page
And a simple
ns_return 200 "text/html" "OK"; return
in my corresponding tcl file, but this file is never called.
Has anybody succeeded in creating custom tcl files?
thanks,
wiwo
--
AOLserver - http://www.aolserver.com/
To Remove yourself from this list, simply send an email to <list...@listserv.aol.com> with the
body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject: field of your email blank.
Yes, I have a configuration like that working like a charm.
Those lines are ok, just make sure that the variable ${servername}
matches the host you're actually configuring, and the the notfound.tcl
file is stored in the root folder for that server.
You can test it out, just asking the server to return that file directly
(i.e. http://your-server/notfound.tcl ). If it works, then it's a
problem with the configuration, very probably that ${servername} is not
properly set.
If it doesn't work, then it's a problem of permissions on the file, or
that the notfound.tcl file is not in the root folder of the server.
Kind Regards,
Juan José
-
Juan José del Río |
(+34) 616 512 340 | juan...@simpleoption.com
Simple Option S.L.
Tel: (+34) 951 930 122
Fax: (+34) 951 930 122
http://www.simpleoption.es
http://www.simpleoption.com
On Wed, 2008-12-10 at 07:46 -0500, Wolfgang Winkler wrote:
> Hi!
>
> I've installed a vanilla AOLServer 4.5 and I'am trying to customize the
> 404 Page.
>
> I've this block in my tcl configuration:
>
> ns_section "ns/server/${servername}/redirects"
> ns_param 404 "/notfound.tcl" ;# Not Foun error page
ns_section "ns/server/${servername}"
...
ns_param enabletclpages true ;# Parse *.tcl files in pageroot.
...
/s.
I've checked out the AOLServer sources from cvs and copied the nsd binary to
my aolserver/bin directory. After a restart the redirects worked.
Maybe it's time for a 4.5.1 release?
wiwo
--
Mit freundlichen Grüßen,
Wolfgang Winkler
-----------------------
Digital Concepts Novak, Winkler OEG
http://www.digital-concepts.at/
Am Winterhafen 1
4020 Linz
Tel.: 0732 / 99 71 17 - 20
Absolutely. Would you like to help prepare it for us? That would be
fantastic ... :-)
Seriously, would someone like to take on the role of preparing the NEWS
and CHANGES text for releases? I guess these are elements that probably
should also be tracked in CVS and maintained by everyone?
--
Dossy Shiobara | do...@panoptic.com | http://dossy.org/
Panoptic Computer Network | http://panoptic.com/
"He realized the fastest way to change is to laugh at your own
folly -- then you can let go and quickly move on." (p. 70)