Fabián R. Breschi wrote:
> I'd need a certain degree of flexibility, for example a directory
> structure to hold my files like this:

You can use something like this (using apache/mp 1)

> /usr/local/apache/cgi-bin/test... <<< executables

<Directory /usr/local/apache/cgi-bin/test>
  SetHandler perl-script
  PerlHandler Apache::Registry
</Directory>

> /usr/local/apache/cgi-bin/test/images... <<< images

<Directory /usr/local/apache/cgi-bin/test/images>
  SetHandler default
</Directory>

> /usr/local/apache/cgi-bin/test/docs ... <<< misc

<Directory /usr/local/apache/cgi-bin/test/docs>
  SetHandler default
</Directory>

> ...and so on.

I personally don't like this approach to organizing since it means you have to
list out all of the stuff that should work normally. I prefer to move my
application a directory down. Something like this:

<Directory /usr/local/apache/cgi-bin/test/app>
  SetHandler perl-script
  PerlHandler Apache::Registry
</Directory>

And then the rest of the stuff should work normally.

-- 
Michael Peters
Developer
Plus Three, LP

Reply via email to