src/server/daemon/location.h

changeset 651
ed74879c7041
parent 642
7b71e2973acc
equal deleted inserted replaced
650:3e4f9cdd70b8 651:ed74879c7041
136 * standard location settings 136 * standard location settings
137 */ 137 */
138 WSLocationConfig config; 138 WSLocationConfig config;
139 139
140 /* 140 /*
141 * list of rewrite rules
142 */
143 CxList *rewrite;
144
145
146 /*
141 * extended settings 147 * extended settings
142 * key: directive name 148 * key: directive name
143 * value: char* 149 * value: char*
144 */ 150 */
145 CxMap *ext_config; 151 CxMap *ext_config;
152 158
153 WSLocation* cfg_location_get(ServerConfiguration *cfg, ConfigNode *obj); 159 WSLocation* cfg_location_get(ServerConfiguration *cfg, ConfigNode *obj);
154 160
155 int location_apply_config(WSLocationConfig *target, WSLocation *loc); 161 int location_apply_config(WSLocationConfig *target, WSLocation *loc);
156 int location_match(WSLocation *loc, cxstring uri, regmatch_t *match); 162 int location_match(WSLocation *loc, cxstring uri, regmatch_t *match);
157 WSLocationConfig* location_match_and_get_config(pool_handle_t *pool, cxstring uri, WSLocation *loc); 163 WSLocationConfig* location_match_and_get_config(pool_handle_t *pool, Request *rq, cxstring uri, WSLocation *loc);
158 WSLocationConfig* cfg_location_match(Session *sn, Request *rq); 164 WSLocationConfig* cfg_location_match(Session *sn, Request *rq);
159 165
160 #ifdef __cplusplus 166 #ifdef __cplusplus
161 } 167 }
162 #endif 168 #endif

mercurial