src/server/daemon/httprequest.c

changeset 636
40f069ddda37
parent 627
b30bf356dac4
child 649
3887fd7e8bd7
equal deleted inserted replaced
635:b85d45fd3b01 636:40f069ddda37
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,

mercurial