mod_xsendfile icon indicating copy to clipboard operation
mod_xsendfile copied to clipboard

Wildcards in XSendFilePath

Open joaquingatica opened this issue 12 years ago • 3 comments

Hi,

First of all thanks for all you work in this project. It's really awesome!

I only have one question. Can wildcards/regex be used in the value of XSendFilePath directive in .htaccess?

It would be pretty useful to set the path for several/all users, so we don't have to specify it each time a user is created.

E.g.: XSendFilePath /home/*/public_html/our_app/path/to/folder

Thanks in advance!

Joaquín

joaquingatica avatar Feb 26 '13 17:02 joaquingatica

I would like to know the answer to that also.

moos3 avatar Jun 05 '14 16:06 moos3

Just had the same question last night... my situation was our website has a download folder for each user of the site... /home/test/user-data/[user account id]/downloads and it does not seem the allow file delete works by using /home/test/user-data aside from the fact some files in this path should not be accessible to the script or potentially deleted by it (only a dev error would cause this though).

morrow95 avatar Oct 12 '14 15:10 morrow95

I got the same problem. The rails capistrano tool always creates a new folder to hold new revision of the application, something like: /apps/one/releases/20170817045408/public/system. I want to use something like /apps/one/releases/*/public/system in XSendFilePath directive.

lewisou avatar Aug 21 '17 08:08 lewisou