On Fri, Aug 2, 2024 at 1:06 PM Eric Covener <cove...@gmail.com> wrote:
>
> > Yeah, if not under DocumentRoot I don't see how ProxyPass could work,
> > but SetHandler should since it's following the whole request
> > processing to resolve the filesystem r->filename?
>
> In the examples I am seeing spot-checking google results, people who
> use ProxyPass + FPM hard-code the document root (or wherever the stuff
> is) in the 2nd parameter. This includes our own manual and the
> unofficial confluence wiki.

Ah ok, I think we can do something like this:
        if (rconf->need_dirwalk) {
            const char *docroot = ap_document_root(r);
            if (strncmp(docroot, r->filename, strlen(docroot)) != 0) {
                r->proxyreq = PROXYREQ_NONE;
                ap_core_translate(r);
            }
            ap_directory_walk(r);
        }
?

Reply via email to