ITeye博客

因其本身有错无法显示 rails for nginx

RobinWu · 2011-11-25 22:29 · Ruby on Rails · 编程语言 · Markdown

vi config/environments/production.rb


  # Specifies the header that your server uses for sending files
  # config.action_dispatch.x_sendfile_header = "X-Sendfile"

  # For nginx:
  config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect'

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。