On 2004.06.19, Cristian Andrei Calin <[EMAIL PROTECTED]> wrote:
> I want to let people see the contents of some directories on my
> server, sort of like apache's Option Indexes. Is this possible with
> AOLserver, and if it is how can it be done ?

Look in sample-config.tcl and search for "directorylisting" -- that's
what you're looking for.

An example snippet to put in your config .tcl file:

    ns_section "ns/server/${servername}/fastpath"
        ns_param directorylisting fancy

By default, it uses directoryproc, and by default uses the proc
_ns_dirlist.  You can implement your own directory listing proc and then
configure AOLserver to use it:

        ns_param directoryproc your_proc_name

Or, you could create an ADP file, but that's more work as you can't just
start by copy-and-pasting the _ns_dirlist proc to do that ...

-- Dossy

--
Dossy Shiobara                       mail: [EMAIL PROTECTED]
Panoptic Computer Network             web: http://www.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)


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