Skip to content

Commit

Permalink
Merge pull request #288 from jajik/MODCLUSTER-832
Browse files Browse the repository at this point in the history
  • Loading branch information
rhusar authored Oct 24, 2024
2 parents e111947 + 86f8e63 commit af80f75
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions native/mod_manager/mod_manager.c
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@
#define SCONBIG "SYNTAX: Context field too big"
#define SALIBAD "SYNTAX: Alias without Context"
#define SCONBAD "SYNTAX: Context without Alias"
#define NOCONAL "SYNTAX: No Context and Alias in APP command"
#define SBADFLD "SYNTAX: Invalid field \"%s\" in message"
#define SMISFLD "SYNTAX: Mandatory field(s) missing in message"
#define SCMDUNS "SYNTAX: Command is not supported"
Expand Down Expand Up @@ -2116,6 +2117,13 @@ static char *process_appl_cmd(request_rec *r, char **ptr, int status, int *errty
*errtype = TYPESYNTAX;
return SROUBAD;
}

/* Note: This applies only for non-wildcarded requests for which Alias and Context are required */
if (vhost->context == NULL && vhost->host == NULL && strcmp(r->uri, "/*") != 0) {
*errtype = TYPESYNTAX;
return NOCONAL;
}

if (vhost->context == NULL && vhost->host != NULL) {
*errtype = TYPESYNTAX;
return SALIBAD;
Expand Down

0 comments on commit af80f75

Please sign in to comment.