summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/http_config.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/include/http_config.h b/include/http_config.h
index 39fe72aff8..8f150465a5 100644
--- a/include/http_config.h
+++ b/include/http_config.h
@@ -313,12 +313,9 @@ struct cmd_parms_struct {
apr_pool_t *temp_pool;
/** Server_rec being configured for */
server_rec *server;
- /** If configuring for a directory, pathname of that directory.
- * NOPE! That's what it meant previous to the existence of <Files>,
- * <Location> and regex matching. Now the only usefulness that can be
- * derived from this field is whether a command is being called in a
- * server context (path == NULL) or being called in a dir context
- * (path != NULL). */
+ /** If configuring for a directory, pathname of that directory. If the
+ * pathname is a regex, regex will be non-NULL below. If path is NULL,
+ * the directive is being called from a server context. */
char *path;
/** configuration command */
const command_rec *cmd;
@@ -331,6 +328,9 @@ struct cmd_parms_struct {
/** If the current directive is EXEC_ON_READ, this is the last
(non-EXEC_ON_READ) enclosing directive */
ap_directive_t *parent;
+
+ /** If the path is a regex, compiled regex will be not NULL. */
+ ap_regex_t *regex;
};
/**