Skip to content

Commit af80f75

Browse files
authored
Merge pull request #288 from jajik/MODCLUSTER-832
2 parents e111947 + 86f8e63 commit af80f75

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

native/mod_manager/mod_manager.c

+8
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@
6060
#define SCONBIG "SYNTAX: Context field too big"
6161
#define SALIBAD "SYNTAX: Alias without Context"
6262
#define SCONBAD "SYNTAX: Context without Alias"
63+
#define NOCONAL "SYNTAX: No Context and Alias in APP command"
6364
#define SBADFLD "SYNTAX: Invalid field \"%s\" in message"
6465
#define SMISFLD "SYNTAX: Mandatory field(s) missing in message"
6566
#define SCMDUNS "SYNTAX: Command is not supported"
@@ -2116,6 +2117,13 @@ static char *process_appl_cmd(request_rec *r, char **ptr, int status, int *errty
21162117
*errtype = TYPESYNTAX;
21172118
return SROUBAD;
21182119
}
2120+
2121+
/* Note: This applies only for non-wildcarded requests for which Alias and Context are required */
2122+
if (vhost->context == NULL && vhost->host == NULL && strcmp(r->uri, "/*") != 0) {
2123+
*errtype = TYPESYNTAX;
2124+
return NOCONAL;
2125+
}
2126+
21192127
if (vhost->context == NULL && vhost->host != NULL) {
21202128
*errtype = TYPESYNTAX;
21212129
return SALIBAD;

0 commit comments

Comments
 (0)