Hi Jan,
On Fri, Mar 6, 2015 at 10:14 AM, <[email protected]> wrote:
> Author: jkaluza
> Date: Fri Mar 6 09:14:07 2015
> New Revision: 1664565
>
> URL: http://svn.apache.org/r1664565
> Log:
> *) mod_rewrite: Add support for starting External Rewriting Programs
> as non-root user on UNIX systems by specifying username and group name
> as third argument of RewriteMap directive.
>
> Modified:
> httpd/httpd/trunk/CHANGES
> httpd/httpd/trunk/docs/manual/rewrite/rewritemap.xml
> httpd/httpd/trunk/modules/mappers/mod_rewrite.c
>
[]
> Modified: httpd/httpd/trunk/docs/manual/rewrite/rewritemap.xml
> URL:
> http://svn.apache.org/viewvc/httpd/httpd/trunk/docs/manual/rewrite/rewritemap.xml?rev=1664565&r1=1664564&r2=1664565&view=diff
> ==============================================================================
> --- httpd/httpd/trunk/docs/manual/rewrite/rewritemap.xml (original)
> +++ httpd/httpd/trunk/docs/manual/rewrite/rewritemap.xml Fri Mar 6 09:14:07
> 2015
> @@ -349,6 +349,11 @@ by many requests.
> module="mod_rewrite">RewriteEngine</directive> set to
> <code>on</code>.</p>
>
> + <p>By default, external rewriting programs are started as root.
s/started as root/run as the user:group who started httpd/ ?
> + This can be changed on UNIX systems by passing user name and
> + group name as third argument to <directive module="mod_rewrite">
> + RewriteMap</directive> in the <code>username:groupname</code> format.</p>
> +
> <p>This feature utilizes the <code>rewrite-map</code> mutex,
> which is required for reliable communication with the program.
> The mutex mechanism and lock file can be configured with the
> @@ -360,7 +365,7 @@ by many requests.
> <p><strong>Rewrite configuration</strong></p>
> <highlight language="config">
>
> -RewriteMap d2u prg:/www/bin/dash2under.pl<br />
> +RewriteMap d2u prg:/www/bin/dash2under.pl apache:apache<br />
> RewriteRule - ${d2u:%{REQUEST_URI}}
> </highlight>
>
>
Could you please also modify Syntax (and describe a bit) in
mod_rewrite.html#rewritemap (docs/manual/mod/mod_rewrite.xml) too?
Regards,
Yann.