Apache2
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Check command context
Collaboration diagram for Check command context:

Macros

#define NOT_IN_VIRTUALHOST   0x01
 
#define NOT_IN_LIMIT   0x02
 
#define NOT_IN_DIRECTORY   0x04
 
#define NOT_IN_LOCATION   0x08
 
#define NOT_IN_FILES   0x10
 
#define NOT_IN_HTACCESS   0x20
 
#define NOT_IN_PROXY   0x40
 
#define NOT_IN_DIR_LOC_FILE   (NOT_IN_DIRECTORY|NOT_IN_LOCATION|NOT_IN_FILES|NOT_IN_PROXY)
 
#define GLOBAL_ONLY   (NOT_IN_VIRTUALHOST|NOT_IN_LIMIT|NOT_IN_DIR_LOC_FILE)
 

Functions

const char * ap_check_cmd_context (cmd_parms *cmd, unsigned forbidden)
 

Detailed Description

Macro Definition Documentation

Forbidden in <VirtualHost>/<Limit>/<Directory>/<Location>/<Files>/<If><Proxy>

#define NOT_IN_DIR_LOC_FILE   (NOT_IN_DIRECTORY|NOT_IN_LOCATION|NOT_IN_FILES|NOT_IN_PROXY)

Forbidden in <Directory>/<Location>/<Files><If><Proxy>

#define NOT_IN_DIRECTORY   0x04

Forbidden in <Directory>

#define NOT_IN_FILES   0x10

Forbidden in <Files> or <If>

#define NOT_IN_HTACCESS   0x20

Forbidden in .htaccess files

#define NOT_IN_LIMIT   0x02

Forbidden in <Limit>

#define NOT_IN_LOCATION   0x08

Forbidden in <Location>

#define NOT_IN_PROXY   0x40

Forbidden in <Proxy>

#define NOT_IN_VIRTUALHOST   0x01

Forbidden in <VirtualHost>

Function Documentation

const char* ap_check_cmd_context ( cmd_parms cmd,
unsigned  forbidden 
)

Check the context a command is used in.

Parameters
cmdThe command to check
forbiddenWhere the command is forbidden.
Returns
Error string on error, NULL on success