| 800 } |
800 } |
| 801 |
801 |
| 802 // if no function has set the ppath var, translate it to docroot |
802 // if no function has set the ppath var, translate it to docroot |
| 803 if(ret == REQ_NOACTION && ppath == NULL) { |
803 if(ret == REQ_NOACTION && ppath == NULL) { |
| 804 cxmutstr docroot = rq->vs->document_root; |
804 cxmutstr docroot = rq->vs->document_root; |
| |
805 if(rq->location && rq->location->docroot.ptr) { |
| |
806 docroot = rq->location->docroot; |
| |
807 } |
| 805 if(docroot.length < 1) { |
808 if(docroot.length < 1) { |
| 806 log_ereport( |
809 log_ereport( |
| 807 LOG_WARN, |
810 LOG_WARN, |
| 808 "VirtualServer(%.*s) docroot too short", |
811 "VirtualServer(%.*s) docroot too short", |
| 809 (int)rq->vs->name.length, |
812 (int)rq->vs->name.length, |