requested uri use the forward worker, but only for PROXYREQ_PROXY
requests.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@105048
13f79535-47bb-0310-9956-
ffa450edef68
- if (r->proxyreq == PROXYREQ_PROXY) {
- if (conf->forward) {
- *balancer = NULL;
- *worker = conf->forward;
- access_status = OK;
- }
- else
- access_status = DECLINED;
- return access_status;
- }
access_status = proxy_run_pre_request(worker, balancer, r, conf, url);
if (access_status == DECLINED && *balancer == NULL) {
*worker = ap_proxy_get_worker(r->pool, conf, *url);
access_status = proxy_run_pre_request(worker, balancer, r, conf, url);
if (access_status == DECLINED && *balancer == NULL) {
*worker = ap_proxy_get_worker(r->pool, conf, *url);
*balancer = NULL;
access_status = OK;
}
*balancer = NULL;
access_status = OK;
}
- else
- access_status = DECLINED;
+ else if (r->proxyreq == PROXYREQ_PROXY) {
+ if (conf->forward) {
+ *balancer = NULL;
+ *worker = conf->forward;
+ access_status = OK;
+ }
+ }
}
else if (access_status == DECLINED && balancer != NULL) {
/* All the workers are busy */
}
else if (access_status == DECLINED && balancer != NULL) {
/* All the workers are busy */