mod_xsendfile with symbolic links

折月煮酒 提交于 2019-11-30 13:45:09

Are you creating the link using an after "deploy:finalize_update" task similar to this:

task :storage_link, :except => { :no_release => true } do
    run "ln -nFs #{deploy_to}/shared/assets #{latest_release}/assets"
end

This makes XSendFilePath see the link as /var/www/site/current/assets which puts it inside of the root path.

Also make sure the user running your app owns and has write permissions on /var/www/site/shared/assets.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!