[users@httpd] REMOTE_USER in a "RewriteCond expr" test with v2.4

2012-05-26 Thread Richard Davies
Hi all, Apache 2.4 introduces ap_expr syntax for complex tests in "RewriteCond expr" I'm trying to write such a test which uses %{REMOTE_USER}. However, the %{LA-U:REMOTE_USER} look-ahead syntax needed to access this variable in a per-server context doesn't seem to work inside an ap_expr. Can a

Re: [users@httpd] Single auth file for many per-user directories

2012-05-23 Thread Richard Davies
Eric Covener wrote: > > ?Require > > > > Or alternatively, a way for me to have "Require valid-user", but then > > somehow prevent users from accessing directories other than their own? > > (even with a hack like rewrite rules?) > > There is a shortcut if the those names are system users and they

[users@httpd] Single auth file for many per-user directories

2012-05-23 Thread Richard Davies
Hi all, I would appreciate any suggetions on how to achieve the following: I have a large number of per-user directories: /var/www/user1 /var/www/user2 /var/www/user3 ... And a htdigest file containing usernames and passwords for all of these users. I want to set up authentication for