https://issues.apache.org/bugzilla/show_bug.cgi?id=57424

            Bug ID: 57424
           Summary: mod_rewrite not using ap_context_document_root
           Product: Apache httpd-2
           Version: 2.4.10
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: mod_rewrite
          Assignee: [email protected]
          Reporter: [email protected]

Hi,

When using other apache modules which make use of ap_set_context_info or
ap_context_document_root (such as mod_userdir), it seems you still need to put
RewriteBase in each .htaccess.

A small change to the mod_rewrite.c appears to have fixed this issue for me.
Below is my diff, however I think this could be implemented better than my
example by someone with more experience.

5029c5029
<                 if ((ccp = ap_document_root(r)) != NULL) {
---
>                 if (((ccp = ap_context_document_root(r)) != NULL)||((ccp = 
> ap_document_root(r)) != NULL)) {

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to