How to override Option defined in <Directory "~">?

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

 



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: 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