Re: [users@httpd] DirectoryIndex and SetHandler

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Just found a solution. The trick is to use a reg exp that excludes a plain 'dir'

Here is the config part

<Directory /usr/www/dir>
 DirectoryIndex home
</Directory>

<Location ~ ^/dir/.+$>
 SetHandler mod_python
 ...
</Location>

Ruben

Joshua Slive wrote:

On 4/27/05, Ruben Decrop <ruben@xxxxxxxxxx> wrote:
The file 'home' exists in the right directory and is returned if the
SetHandler is not active.  So I assume the DirectoryIndex is set correctly

I am running mod_python which uses the myghty handler (www.myghty.org).
The handler runs without issues for all  /dir/* files.  I would like
that the handler is applied for  '/dir/home' when the browser is
requesting http://host/dir

I haven't looked into these issues in a while, so I can't remember for
sure.  But my guess is that it is the handler that is responsible for
determining whether it handles "virtual" locations (like the directory
without the file) or whether it insists on having a filename.

You could probably get around the problem by putting your SetHandler
into a <Files *>.

Joshua.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
  "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx





---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
  "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux