Forum Moderators: phranque

Message Too Old, No Replies

<Directory> Directive breaks when used in .htaccess

         

thedust2010

6:00 pm on Sep 23, 2008 (gmt 0)

10+ Year Member



The subject line says it all... what do I have to do to issue the <Directory> directive from .htaccess? Whenever I place this directive in my .htaccess file I get a 500 error.

g1smd

6:11 pm on Sep 23, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



What is inside the <Directory> directive?

I had this problem with <Filesmatch> the other day, but the problem wasn't with <Filesmatch> itself.

[webmasterworld.com...]

thedust2010

6:17 pm on Sep 23, 2008 (gmt 0)

10+ Year Member



It doesn't matter what's inside... I can just place the following and it still won't work:

<Directory>

</Directory>

encyclo

7:26 pm on Sep 23, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



[httpd.apache.org...]

Context: server config, virtual host

You can't use

<Directory ...></Directory>
in .htaccess.

thedust2010

7:40 pm on Sep 23, 2008 (gmt 0)

10+ Year Member



Thanks for the clarification. I'm a bit of an Apache n00bie. :)