|
Hey all, i am looking for the best way to manage my file uploads for a django app. I am not completely sure if i should choose the plain Static or the Static/CGI/PHP app. Static would probably be enough and performance wise even preferable, as i only deal with media files. But is there a way to disable the directory index/listing for the static directory? As i couldn't find an option (no support for .htaccess) i tried the Static/CGI/PHP app. I added the following lines to a .htaccess in my upload dir:
But this doesn't seem to be enough. The listing of all uploaded files and subfolders still shows up. Did i forget an additional step (e.g. tweaking the httpd.conf) or something obvious? In a broader perspective i wouldn't mind to even add a further level of security and use some kind of user authentication to access the files. Has someone tried this snippet: X-Sendfile static file serve view? Does this work with apache/nginx on webfaction? Are there eventually other, proven ways to solve authenticated access to uploaded files that i should consider? Thanks, Andreas |