httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stefano Sasso" <stesa...@gmail.com>
Subject Re: [users@httpd] LocationMatch and DirectoryMatch regex
Date Mon, 06 Nov 2006 09:39:31 GMT
2006/11/3, Joshua Slive <joshua@slive.ca>:
> No.  Sometimes you can use mod_rewrite to enforce similar
> restrictions, but you can't, in general, use wildcards like that.

thanks.
I've resolved using mod_rewrite. here the solution:

RewriteEngine On
RewriteRule ^/(.*) /srv/web/%{LA-U:REMOTE_USER}/$1

<Directory /srv/web>
DAV On
Options Indexes
Options +FollowSymLinks
AllowOverride None
AuthType Basic
AuthName "WebDAV"
AuthUserFile /etc/apache2/vhost.dav
require valid-user
</Directory>

bye
Stefano S.

-- 
---------------------------------------------------------------
Per favore non mandate allegati in Word o PowerPoint.
Si veda http://www.fsf.org/philosophy/no-word-attachments.html
---------------------------------------------------------------
Stefano Sasso
stesasso@gmail.com
Linux User #330315
http://www.gnustile.net.org/

---------------------------------------------------------------------
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@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message