Apache2
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)
 
#define NOT_IN_DIR_CONTEXT   (NOT_IN_LIMIT|NOT_IN_DIR_LOC_FILE|NOT_IN_PROXY)
 
#define GLOBAL_ONLY   (NOT_IN_VIRTUALHOST|NOT_IN_DIR_CONTEXT)
 

Functions

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

Detailed Description

Macro Definition Documentation

◆ GLOBAL_ONLY

#define GLOBAL_ONLY   (NOT_IN_VIRTUALHOST|NOT_IN_DIR_CONTEXT)

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

◆ NOT_IN_DIR_CONTEXT

#define NOT_IN_DIR_CONTEXT   (NOT_IN_LIMIT|NOT_IN_DIR_LOC_FILE|NOT_IN_PROXY)

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

◆ NOT_IN_DIR_LOC_FILE

#define NOT_IN_DIR_LOC_FILE   (NOT_IN_DIRECTORY|NOT_IN_LOCATION|NOT_IN_FILES)

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

◆ NOT_IN_DIRECTORY

#define NOT_IN_DIRECTORY   0x04

Forbidden in <Directory>

◆ NOT_IN_FILES

#define NOT_IN_FILES   0x10

Forbidden in <Files> or <If>

◆ NOT_IN_HTACCESS

#define NOT_IN_HTACCESS   0x20

Forbidden in .htaccess files

◆ NOT_IN_LIMIT

#define NOT_IN_LIMIT   0x02

Forbidden in <Limit>

◆ NOT_IN_LOCATION

#define NOT_IN_LOCATION   0x08

Forbidden in <Location>

◆ NOT_IN_PROXY

#define NOT_IN_PROXY   0x40

Forbidden in <Proxy>

◆ NOT_IN_VIRTUALHOST

#define NOT_IN_VIRTUALHOST   0x01

Forbidden in <VirtualHost>

Function Documentation

◆ ap_check_cmd_context()

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