Hi,

Because a description is quite long my question first:
How can I override Option (here disable MultiViews) for a *specified*
directory (and its subdirectories) (using httpd.conf or .htaccess) when
that option was enabled using "<Directory ~>" tag?


The whole story:
I have a small problem with Apache configuration for user public_html
directories. In the system there are many groups of users located in
different directories:
/home/foo/user1
/home/bar/user2
/home/2007/aa/user3
/home/2007/ab/user4
/home/too/2005/z/user5
(...)

There is no simple regex to describe that and probably it was a reason
to use "<Directory "~">" instead of standard "<Directory
/home/*/public_html>" a long time ago:

<Directory "~">
   AllowOverride AuthConfig FileInfo Limit
   Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec +ExecCGI
    <Limit GET POST OPTIONS PROPFIND>
        Order allow,deny
        Allow from all
    </Limit>
</Directory>

Currently I would like to disable a MultiViews option for the one
directory (due to a problem with mod_rewrite for a not existing files -
(13)Access denied: cannot read directory for multi). If there was a
classic "<Directory /home/*/public_html>" there wouldn't be a problem,
but unfortunately <Directory "~"> seems to be stronger, which reflects to:
http://httpd.apache.org/docs/2.2/sections.html#mergin
and -MultiViews in <Directory> tag for given directory nor in .htaccess
doesn't work.
I don't wont to disable MultiViews globally, because some of the users
could depend on it. It's Apache 2.2.

Because it's only needed for the one directory (with subdirectories) of
the one user Location can be not unique, File would have problem with
subdirs.

So, I would like to ask:
1. Is it possible to override Option in <Directory "~"> somehow (for a
one directory)?
2. Is it possible to change <Directory "~"> to something else for
mentioned irregular directories structure (I can't change it)?


Thanks for your help
Marcin


---------------------------------------------------------------------
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: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to