httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 57424] New: mod_rewrite not using ap_context_document_root
Date Wed, 07 Jan 2015 16:20:17 GMT
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: bugs@httpd.apache.org
          Reporter: simon@iamfletch.co.uk

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: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


Mime
View raw message