You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by sepeth <se...@gmail.com> on 2008/07/25 17:00:08 UTC

[users@httpd] What is the difference between and ?

Hi!

What is the difference between <Directory ~> and <DirectoryMatch>?

just curiosity.

---------------------------------------------------------------------
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@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] What is the difference between and ?

Posted by ganesh ganesh <ga...@gmail.com>.
Hi,

   The basic difference is  while using <Directory>  the path should be
absolute and should be there on the filesystem. But <DirectoryMatch> there
is no need for any absolute path.... Also if your Document root is /opt/html
and assume there are two other folders like /opt/html/test/test1 and
/opt/html/support/test now on the doucument root on .htaccess if you have
used <DirectoryMatch test> and denied for everyone, access for both
/opt/html/test & /opt/html/support/test will be blocked which is not with
the case of <Directory>

Regards.

On Fri, Jul 25, 2008 at 8:34 PM, Joshua Slive <jo...@slive.ca> wrote:

> On Fri, Jul 25, 2008 at 11:00 AM, sepeth <se...@gmail.com> wrote:
> > Hi!
> >
> > What is the difference between <Directory ~> and <DirectoryMatch>?
> >
> > just curiosity.
>
> None. Just a change in syntax over time because <Directory ~> is a
> little obscure. They work exactly the same.
>
> 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@httpd.apache.org
>   "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>


-- 
Regards,
GANESH.

Re: [users@httpd] What is the difference between and ?

Posted by Joshua Slive <jo...@slive.ca>.
On Fri, Jul 25, 2008 at 11:00 AM, sepeth <se...@gmail.com> wrote:
> Hi!
>
> What is the difference between <Directory ~> and <DirectoryMatch>?
>
> just curiosity.

None. Just a change in syntax over time because <Directory ~> is a
little obscure. They work exactly the same.

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@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org