nmaier / mod_xsendfile

Apache2 module that processes X-SENDFILE headers to serve static files from dynamic handlers efficiently
https://tn123.org/mod_xsendfile/
Apache License 2.0
186 stars 38 forks source link

Wildcards in XSendFilePath #21

Open joaquingatica opened 11 years ago

joaquingatica commented 11 years ago

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

moos3 commented 10 years ago

I would like to know the answer to that also.

morrow95 commented 10 years ago

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).

lewisou commented 7 years ago

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.