Here is a TCL hack to serve files w/o case sensitivity (not tested):

ns_register_proc GET / servit
ns_register_proc POST / servit
ns_register_proc HEAD / servit

proc servit {conn ignore} {

  set url [string tolower [ns_conn url]]
  if {[file exists [ns_info pageroot]$url]} {
    ns_returnfile 200 [ns_guesstype $url] [ns_info pageroot]$url
  } else {
    ns_returnnotfound
  }
}

Only works for static pages though.

Jim

>
> +---------- On Nov 8, Lamar Owen said:
> > This may be an obvious one, but I'm trying to move a site over from an IIS
> > host to an AOLserver one, and the web pages link to mixed-case filenames.
> > However, the filenames are all actually lower case, meaning I get a lot of
> > 404's.
>
> Write a module that provides a Tcl binding for Ns_SetRequestUrl. Then
> use a that to write a Tcl preauth filter that smashes the URL to
> lowercase.
>
> Or write a module that does the same entirely in C.
>

Reply via email to