How can I give download access to files outside public_html directory?

前端 未结 3 960
囚心锁ツ
囚心锁ツ 2021-01-06 08:46

I have files stored outside the public_html folder for security purposes. However, I would like to link to specific files somehow where a user could download one of these fi

3条回答
  •  北海茫月
    2021-01-06 09:22

    Another standard way to do this is using mod_xsendfile -- it will allow a web application to have the web server send a file as its output by specifying the path in a header (X-SendFile).

提交回复
热议问题