I've got a virtual host set up with authmysql. I would now like to configure it in a way that files with certain extensions (doc, docx, xls, etc..) do not require authentication for several http techniques (PROPFIND Mind OPTIONS).

I'm presently using:

<LimitExcept PROPFIND HEAD OPTIONS>
      require valid-user 
</LimitExcept>

By doing this no valid-user is needed of these techniques, but it's for those files/folders. I only would like it to be for that given extensions.

Edit: Solution:

<FilesMatch "(?!docx).{4}$">
    Header add MyHeader "not docx!"
    require valid-user
 </FilesMatch>
 <FilesMatch ".docx$">
    Header add MyHeader2 "Docx!"
    <LimitExcept PROPFIND HEAD OPTIONS>
             require valid-user
    </LimitExcept>
 </FilesMatch>

talks by itself..