httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marcin ZajÄ…czkowski <>
Subject [users@httpd] How to override Option defined in <Directory "~">?
Date Sun, 19 Oct 2008 20:11:12 GMT

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:

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
        Order allow,deny
        Allow from all

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

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

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message