Capistrano and XSendFile configuration

后端 未结 1 1337
名媛妹妹
名媛妹妹 2021-01-17 02:05

I am trying to configure Rails production server with Apache 2.2, Passenger 4.0.59 and XSendFile 0.12. Application is deployed via Capistrano.

Deployed application p

相关标签:
1条回答
  • 2021-01-17 02:39

    I finally managed to make it work. A few tips for the ones who will have problems with XSendFile

    1. I set XSendFilePath to user's $HOME, there are no symlinks on the path to $HOME, so it works. I can accept this from functional and security point of view, but it is obviously a workaround.
    2. Be aware that XSendFilePath is sensitive to paths containing multiple slashes /like//this. I am using apache macros and while concatenatingXSendFilePath parameter from a few macro parameters I put some obsolete slashes. This caused XSendFile to refuse to send files.

    Good luck!

    0 讨论(0)
提交回复
热议问题