303
303
* at the end of the configuration parsing if the proxy is not in http mode.
304
304
* The <file> argument is used to construct the error message.
306
int proxy_cfg_ensure_no_http(struct proxy *curproxy, const char *file)
306
int proxy_cfg_ensure_no_http(struct proxy *curproxy)
308
308
if (curproxy->cookie_name != NULL) {
309
Warning("parsing %s : cookie will be ignored for %s '%s' (needs 'mode http').\n",
310
file, proxy_type_str(curproxy), curproxy->id);
309
Warning("config : cookie will be ignored for %s '%s' (needs 'mode http').\n",
310
proxy_type_str(curproxy), curproxy->id);
312
312
if (curproxy->rsp_exp != NULL) {
313
Warning("parsing %s : server regular expressions will be ignored for %s '%s' (needs 'mode http').\n",
314
file, proxy_type_str(curproxy), curproxy->id);
313
Warning("config : server regular expressions will be ignored for %s '%s' (needs 'mode http').\n",
314
proxy_type_str(curproxy), curproxy->id);
316
316
if (curproxy->req_exp != NULL) {
317
Warning("parsing %s : client regular expressions will be ignored for %s '%s' (needs 'mode http').\n",
318
file, proxy_type_str(curproxy), curproxy->id);
317
Warning("config : client regular expressions will be ignored for %s '%s' (needs 'mode http').\n",
318
proxy_type_str(curproxy), curproxy->id);
320
320
if (curproxy->monitor_uri != NULL) {
321
Warning("parsing %s : monitor-uri will be ignored for %s '%s' (needs 'mode http').\n",
322
file, proxy_type_str(curproxy), curproxy->id);
321
Warning("config : monitor-uri will be ignored for %s '%s' (needs 'mode http').\n",
322
proxy_type_str(curproxy), curproxy->id);
324
324
if (curproxy->lbprm.algo & BE_LB_PROP_L7) {
325
325
curproxy->lbprm.algo &= ~BE_LB_ALGO;
326
326
curproxy->lbprm.algo |= BE_LB_ALGO_RR;
327
Warning("parsing %s : Layer 7 hash not possible for %s '%s' (needs 'mode http'). Falling back to round robin.\n",
328
file, proxy_type_str(curproxy), curproxy->id);
327
Warning("config : Layer 7 hash not possible for %s '%s' (needs 'mode http'). Falling back to round robin.\n",
328
proxy_type_str(curproxy), curproxy->id);