Summary: | UserDir is not accepting more than one directory location | ||
---|---|---|---|
Product: | Apache httpd-2 | Reporter: | mhruscak |
Component: | mod_userdir | Assignee: | Apache HTTPD Bugs Mailing List <bugs> |
Status: | NEW --- | ||
Severity: | minor | Keywords: | FixedInTrunk |
Priority: | P1 | ||
Version: | 2.4.6 | ||
Target Milestone: | --- | ||
Hardware: | PC | ||
OS: | Linux | ||
Attachments: | userdir.conf |
Description
mhruscak
2016-05-26 18:37:35 UTC
Confirmed. Fixed in r1832306. Previously we were checking only in the first *existing* directory, which is clearly not what is said in the doc. > UserDir "public_html" "/usr/web" "http://www.example.com/" > > With a request for http://www.example.com/~bob/one/two.html, will try to find > the page at ~bob/public_html/one/two.html first, then /usr/web/bob/one/two.html, > and finally it will send a redirect to http://www.example.com/bob/one/two.html. Christophe, should we propose this for a 2.4.x backport? r1832306 does not seem to be complete enough. If we go through the 'apr_uid_homepath_get' branch, and if it does NOT return SUCCESS, then filename would still be NULL, and we would certainly segfault in the apr_strcat call. This should be reworded a bit before a backport proposal. |