For a webdav server I have a virtualhost with the following directives, where each Directory directive is a local user:
Alias /foouser /home/foouser
<Directory /home/foouser>
DAV On
AuthName "webdav"
AuthType Basic
AuthBasicProvider external
AuthExternal pwauth
Require user foouser
AssignUserID foouser foouser
Options +Indexes
AllowOverride all
</Directory>
Alias /davtest /home/davtest
<Directory /home/davtest>
DAV On
AuthName "webdav"
AuthType Basic
AuthBasicProvider external
AuthExternal pwauth
Require user davtest
AssignUserID davtest davtest
Options +Indexes
AllowOverride all
</Directory>
Is it possible in the apache config file to have instead some catch-all or rewrite rules so I don’t need to specify each directory individually ?
Alternatively, is it possible to save the directory-specific information in a file, say “foouser.apacheconf” in folder “usersconfs”, and include all the files in such folder in the main vhost configuration file ?