WebFaction
Community site: login faq

I'm using the static Nginx app to serve user-uploaded files; so far this works fine, except that I need to control who can download which files. What's the best way to do this without having django serve the file download?

I found several threads on the old forum that talked about this, but they all seem to require compiling my own version of Apache or Nginx as custom "listening on port" app. Is there an easier way to do this?

asked 08 Jul '12, 07:01

lieryan
14
accept rate: 0%

edited 08 Jul '12, 07:02


Authentication cannot be done in a static-only app, so you either need to serve them directly in Django, or compile a custom Nginx server to configure it for this purpose (it will be faster than using Django).

permanent link

answered 08 Jul '12, 07:33

todork
1.2k5
accept rate: 34%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×910
×186
×6

question asked: 08 Jul '12, 07:01

question was seen: 2,358 times

last updated: 08 Jul '12, 07:33

                              
WEBFACTION
REACH US
SUPPORT
LEGAL
© COPYRIGHT 2003-2021 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM