--- a/src/server/daemon/location.h Sun Dec 07 16:31:21 2025 +0100 +++ b/src/server/daemon/location.h Sun Dec 07 17:06:21 2025 +0100 @@ -138,6 +138,12 @@ WSLocationConfig config; /* + * list of rewrite rules + */ + CxList *rewrite; + + + /* * extended settings * key: directive name * value: char* @@ -154,7 +160,7 @@ int location_apply_config(WSLocationConfig *target, WSLocation *loc); int location_match(WSLocation *loc, cxstring uri, regmatch_t *match); -WSLocationConfig* location_match_and_get_config(pool_handle_t *pool, cxstring uri, WSLocation *loc); +WSLocationConfig* location_match_and_get_config(pool_handle_t *pool, Request *rq, cxstring uri, WSLocation *loc); WSLocationConfig* cfg_location_match(Session *sn, Request *rq); #ifdef __cplusplus