Apache SSI and <Directory> vs <Directory Match>

Apache SSI and <Directory> vs <Directory Match>

Post by jaimewy.. » Tue, 19 Dec 2000 13:54:26



I am attempting to have apache process my SSI directives in executable
files (err, XBitHack on)

Apache works as expected, if I set up my directory this way:

<DirectoryMatch /var/www >
    Options  Includes
    AllowOverride None
</DirectoryMatch>

However, if I use this:

<Directory /var/www >
    Options  Includes
    AllowOverride None
</Directory>

The server side includes stop working.  I am really confused here.  The
file I am trying to serve is /var/www/test.html.  My root directory is
pointed to /var/www.

Can anyone explain this to me?

Thanks,
jaime

Sent via Deja.com
http://www.deja.com/

 
 
 

Apache SSI and <Directory> vs <Directory Match>

Post by Joshua Sliv » Tue, 19 Dec 2000 15:38:18



> I am attempting to have apache process my SSI directives in executable
> files (err, XBitHack on)
> Apache works as expected, if I set up my directory this way:
> <DirectoryMatch /var/www >
>     Options  Includes
>     AllowOverride None
> </DirectoryMatch>
> However, if I use this:
> <Directory /var/www >
>     Options  Includes
>     AllowOverride None
> </Directory>
> The server side includes stop working.  I am really confused here.  The
> file I am trying to serve is /var/www/test.html.  My root directory is
> pointed to /var/www.
> Can anyone explain this to me?

Yes, <DirectoryMatch> sections are evaluated after all <Directory>
sections.  You must have another <Directory> section with a different
set of Options which is read AFTER your <Directory> section,
but BEFORE your <DirectoryMatch> section.

--
Joshua Slive

http://finance.commerce.ubc.ca/~slive/

 
 
 

Apache SSI and <Directory> vs <Directory Match>

Post by jaimewy.. » Wed, 20 Dec 2000 03:44:44





> > I am attempting to have apache process my SSI directives in
executable
> > files (err, XBitHack on)

> > Apache works as expected, if I set up my directory this way:

> > <DirectoryMatch /var/www >
> >     Options  Includes
> >     AllowOverride None
> > </DirectoryMatch>

> > However, if I use this:

> > <Directory /var/www >
> >     Options  Includes
> >     AllowOverride None
> > </Directory>

> > The server side includes stop working.  I am really confused here.
The
> > file I am trying to serve is /var/www/test.html.  My root directory
is
> > pointed to /var/www.

> > Can anyone explain this to me?

> Yes, <DirectoryMatch> sections are evaluated after all <Directory>
> sections.  You must have another <Directory> section with a different
> set of Options which is read AFTER your <Directory> section,
> but BEFORE your <DirectoryMatch> section.

Sorry for the confusion, I meant to say that if I use the <Directory> I
do not use the <DirectoryMatch>

I do not have another <Directory> setup, when I try to match /var/www,
so I do not believe that it is being overriden.

This is most confusing.

jaime

Sent via Deja.com
http://www.deja.com/