Re: Replicating mod_autoindex's behaviour with a modperl handler

2004-07-16 Thread Geoffrey Young
> One more problem I'm now having with this is in the UserDir. Is there > any way for me to get the mapping from apache of the real directory that > /~user/ means? not really. mod_userdir applies some URI translations that you can't really see. but they are pretty easy to figure out and emulate

Re: Replicating mod_autoindex's behaviour with a modperl handler

2004-07-16 Thread Rando Christensen
On Thu, 15 Jul 2004 16:26:54 -0600 Rando Christensen <[EMAIL PROTECTED]> wrote: > Yes, in order to make it work, I ended up making the handler be called > > /virtual/indexer, created a /virtual dir, did a global alias of > /virtual to that dir, and created an empty file named indexer. > Director

Re: Replicating mod_autoindex's behaviour with a modperl handler

2004-07-15 Thread Rando Christensen
Geoffrey Young wrote: well, if there are absolutely no real files at all, then I don't think DirectoryIndex will work - mod_dir only applies DirectoryIndex when $r->filename ends up being a real directory (a $r->content_type of DIR_MAGIC_TYPE). but other than that it looks ok :) so, if that doesn'

Re: Replicating mod_autoindex's behaviour with a modperl handler

2004-07-14 Thread Geoffrey Young
Rando Christensen wrote: > Geoffrey Young wrote: > >> see the DirectoryIndex documentation - you can specify a URL as well as >> individual files, so you can simply point to a mod_perl content >> handler and >> leave mod_autoindex/mod_dir to do what they do best. >> >> if you use DirectoryIndex

Re: Replicating mod_autoindex's behaviour with a modperl handler

2004-07-13 Thread Rando Christensen
Geoffrey Young wrote: see the DirectoryIndex documentation - you can specify a URL as well as individual files, so you can simply point to a mod_perl content handler and leave mod_autoindex/mod_dir to do what they do best. if you use DirectoryIndex then just put DirectoryIndex index.html /yourhan

Re: Replicating mod_autoindex's behaviour with a modperl handler

2004-07-13 Thread Geoffrey Young
Rando Christensen wrote: > Hi, I'd like to have a modperl handler that handles directory indexing > similar to mod_autoindex, as in fitting the following rule: > > if at any time it encounters a directory with no other valid indexing > method, the modperl handler is called and will produce outpu

Replicating mod_autoindex's behaviour with a modperl handler

2004-07-13 Thread Rando Christensen
Hi, I'd like to have a modperl handler that handles directory indexing similar to mod_autoindex, as in fitting the following rule: if at any time it encounters a directory with no other valid indexing method, the modperl handler is called and will produce output of the files within the director