src/server/daemon/httprequest.c

changeset 636
40f069ddda37
parent 627
b30bf356dac4
child 649
3887fd7e8bd7
--- 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,

mercurial