Tell me more ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

On the server I have a folder nginx files /. I want to do in order to retrieve from this folder every file regardless of format. It is about protection before performing a file on the server. Currently I have set:

    location ^~ /files/ {
        types                   { }
        default_type  application/octet-stream;
        add_header    Content-Disposition attachment;
    }

But apparently it is not safe.

Please an example.

share|improve this question

closed as not a real question by Michael Hampton, Tom O'Connor, Hubert Kario, EEAA, growse Nov 3 '12 at 11:09

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, see the FAQ.

Browse other questions tagged or ask your own question.