--- a/src/server/daemon/httprequest.c Sun Nov 23 12:44:59 2025 +0100 +++ b/src/server/daemon/httprequest.c Sun Nov 23 13:22:56 2025 +0100 @@ -802,6 +802,9 @@ // if no function has set the ppath var, translate it to docroot if(ret == REQ_NOACTION && ppath == NULL) { cxmutstr docroot = rq->vs->document_root; + if(rq->location && rq->location->docroot.ptr) { + docroot = rq->location->docroot; + } if(docroot.length < 1) { log_ereport( LOG_WARN,