Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wildcards in XSendFilePath #21

Open
joaquingatica opened this issue Feb 26, 2013 · 3 comments
Open

Wildcards in XSendFilePath #21

joaquingatica opened this issue Feb 26, 2013 · 3 comments

Comments

@joaquingatica
Copy link

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
Copy link

moos3 commented Jun 5, 2014

I would like to know the answer to that also.

@morrow95
Copy link

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
Copy link

lewisou commented Aug 21, 2017

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants