Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 111081 - support for mod_userdir in mod_suphp
Summary: support for mod_userdir in mod_suphp
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Apache Team - Bugzilla Reports
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-10-31 19:31 UTC by Miles Lubin
Modified: 2006-06-05 11:17 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
suphp-0.6.0-userdir.patch (suphp-0.6.0-userdir.patch,7.48 KB, patch)
2005-10-31 19:32 UTC, Miles Lubin
Details | Diff
suphp-0.6.1-userdir.patch (suphp-0.6.1-userdir.patch,6.96 KB, patch)
2005-12-13 16:57 UTC, Miles Lubin
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Miles Lubin 2005-10-31 19:31:19 UTC
Currently, in force and paranoid mode, suphp doesn't handle correctly mod_userdir sites. i.e. 
www.foo.com/~bar will run as foo.com's user, not as bar. Attached is a patch that I wrote that lets suphp 
handles user sites correctly. It was submitted to the mailing list a month ago, with no response as-of-yet 
from the maintainer, so gentoo might want to include it, as judging by past history, the next upstream 
release may not be for a while.

It is disabled by default, so it could be patched by default. To enable it, set handle_userdir=true in /etc/
suphp.conf. It doesn't affect at all owner mode. 

It's been tested on apache 2, and I've been running it on my server without any problems.
Comment 1 Miles Lubin 2005-10-31 19:32:01 UTC
Created attachment 71833 [details, diff]
suphp-0.6.0-userdir.patch
Comment 2 Miles Lubin 2005-12-13 16:57:18 UTC
Created attachment 74677 [details, diff]
suphp-0.6.1-userdir.patch

updated for 0.6.1
Comment 3 Benedikt Böhm (RETIRED) gentoo-dev 2006-06-05 11:17:18 UTC
in cvs, thanks