[cgiwrap-users] patch for handing user-based virtual hosts without ~user
Brought to you by:
nneul
From: Jo R. <jr...@sv...> - 2006-09-13 05:00:22
|
A bunch of us who use cgiwrap were joking about the fact that pretty much everyone downloads cgiwrap and then hacks it to handle their virtualhost environments properly, but nobody resubmits the code back to the main tree. Kind of silly, everyone reinventing the world each time. And it's a darn simple set of patches. So I went to my boss and got permission to provide our versions of this patch. The patch I'm proposing would provide a configure option like so: (option names are pulled from air and better suggestions are welcome) --user-directory-level=2 Would mean that the username is provided in the second level of the DOCUMENT_ROOT, for example /home/jrhett/public_html -or- /home/jrhett/www/docs -or- /servers/jrhett/www ...etc We could instead (or in addition?) have another option for common paths. For example: --user-directory-base=/home Would mean that the username is provided underneath /home in the DOCUMENT_ROOT, for example /home/jrhett/public_html /home/jrhett/www/docs ..etc Advantages to me and you? No funny ~username mapping required for virtual hosts. Or not having to patch each new version after download :-) Advantages to the mailing list? Funny rewrite policies are no longer required. That's usually the bulk of support requests. Security considerations: only if DOCUMENT_ROOT can be overwritten before cgiwrap is invoked. -- Jo Rhett senior geek SVcolo : Silicon Valley Colocation |