On Mon, 7 Mar 2005 16:00:59 -0500, Vladislav Sekulic <vlad.sekulic@xxxxxxxxxxx> wrote: > If I access the script in the following manner, > > http://server/~foouser/foo.cgi > > all is well and we get "foouser" as the running user. However, if > we add the following RewriteRule to httpd.conf: > > RewriteRule ^/~foouser/([[:alnum:]]+)(/?.*) /~foouser/public_html/foo.cgi > > which simply maps all requests of the form /~foouser/whatever to > the CGI script foo, and then we access the script using this method > (e.g., "http://server/~foouser/bar"), the script displays the Apache > webuser, *not* "foouser" as it should. suexec will only be called if mod_userdir processes the request. In your case, you appear to be using mod_rewrite to dodge mod_userdir, and therefore suexec will not be called. (You may be able to fix this by removing the public_html, which will cause the internal redirect to go through suexec -- you may also need to use the [PT] flag -- but that is just a guess.) Joshua. --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See <URL:http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx