`

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

阅读更多
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'
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics