Adriaan wrote:
> Hi,
> 
> In windows when i use iis, i attach the aspnet_isapi.dll to all files and
> don't let iis check if the file exists. I am doing this to prevent from
> downloading any file by the user, all files has to be handled by .net. With
> this feature i can check for each uploaded file if the user is authenticated
> for that file.
> 
> Under linux / mono i am searching for the same option. I have found the
> addHandler in mod-mono.conf, but thats only for a single extension.

You can specify more than one extension:

        AddHandler mono .aspx .ascx .asax .ashx .config .cs .asmx .axd

> 
> So my question is, how can i attache mod_mono to each file extension? Or is
> there another way to handle the files as described above?

You can handle all files using SetHandler, e.g.:

        <Location />
                SetHandler mono
        </Location>

Robert

_______________________________________________
Mono-list maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-list

Reply via email to