You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modules-dev@httpd.apache.org by Andy Grant <an...@gmail.com> on 2008/06/10 18:40:42 UTC

enable override (allow htaccess use)

How do you enable/disable the use of your directives in htaccess files?
I've read about context and overrides, but can't find them in reference
to developing a module, just in reference to using them (i.e.
AllowOverride FileInfo). Thanks.

Re: enable override (allow htaccess use)

Posted by John Zhang <jo...@yahoo.com>.

>--- On Tue, 6/10/08, Andy Grant <an...@gmail.com> wrote:

>From: Andy Grant <an...@gmail.com>
>Subject: enable override (allow htaccess use)
>To: modules-dev@httpd.apache.org
>Date: Tuesday, June 10, 2008, 9:40 AM

>How do you enable/disable the use of your directives in htaccess files?
>I've read about context and overrides, but can't find them in reference
>to developing a module, just in reference to using them (i.e.
>AllowOverride FileInfo). Thanks. 

In your command table, when you specify your directive.  The 4th argument of the macros (eg AP_INIT_TAKE12(...)) specifies where/how your directive can be placed. See http_config.h for the meanings.

Here is one define from the .h file
#define OR_LIMIT 1	     /**< *.conf inside <Directory> or <Location>
				and .htaccess when AllowOverride Limit */