httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject [Bug 57424] New: mod_rewrite not using ap_context_document_root
Date Wed, 07 Jan 2015 16:20:17 GMT

            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


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.

<                 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:
For additional commands, e-mail:

View raw message