ap_check_cmd_context — check if configuration cmd allowed in current context
const char *ap_check_cmd_context(cmd_parms *cmd, unsigned forbidden)
Checks whether cmd
is permitted in the current
configuration context, according to the value of
forbidden
. Returns NULL
if it
is or an appropriate error message if not.
forbidden
must be a combination of the following:
NOT_IN_VIRTUALHOST
Command cannot appear in a <VirtualHost>
section.
NOT_IN_LIMIT
Command cannot occur in a <Limit>
section.
NOT_IN_DIRECTORY
Command cannot occur in a <Directory>
section.
NOT_IN_LOCATION
Command cannot occur in a <Location>
section.
NOT_IN_FILES
Command cannot occur in a <Files>
section.
NOT_IN_DIR_LOC_FILE
Shorthand for
NOT_IN_DIRECTORY|NOT_IN_LOCATION|NOT_IN_FILES
.
GLOBAL_ONLY
Shorthand for
NOT_IN_VIRTUALHOST|NOT_IN_LIMIT|NOT_IN_DIR_LOC_FILE
.