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

Question about usage #80

Open
macarthy opened this issue Dec 3, 2020 · 1 comment
Open

Question about usage #80

macarthy opened this issue Dec 3, 2020 · 1 comment

Comments

@macarthy
Copy link

macarthy commented Dec 3, 2020

HI,

I have a directories like :

-papers
-- paper1
---- paper1.pdf
---- image1.jpg
---- image2.jpg
-- paper2
---- paper2.pdf
---- image1.jpg
---- image2.jpg

Is it possible to have urls such as

papers/paper1.zip
papers/paper2.zip

download the contents of the corresponding directory ?
How would I config that ?

Thanks

@donkeyDau
Copy link

You need some logic in your server to take the request of paper1.zip, query the details of the folder content from s3 and pass the reply to mod_zip as described in https://github.com/evanmiller/mod_zip#Usage

Set up your nginx as proxy to pass the request to your logic and the reply is then taken by mod_zip. To set the name of the zip file see https://github.com/evanmiller/mod_zip#Tips

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

2 participants