我得到旅客使用在Apache的钢轨403错误 [英] I'm getting 403 error using passenger for rails in apache

查看:123
本文介绍了我得到旅客使用在Apache的钢轨403错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经安装了所需的工具,跟着几个教程试图让乘客响应。

I've already installed the needed tools, and followed several tutorials trying to make passenger respond.

我可以公开的文件夹(公共/ 500.html或422.hml)的访问静态文件。昨天我通过一个虚拟主机进入,并发现了一些乘客的错误。但一段时间后,托管服务重新启动,从那时起,我一直没能应用再次访问轨。

I can access static files in public folder (public/500.html or 422.hml). Yesterday I entered through a vhost, and found some passenger errors. But some time later the hosting restarted the service, and since then I have not been able to access the rails app again.

<一个href=\"http://serverfault.com/questions/46865/virtualhost-setup-for-ruby-on-rails-application-mod-passenger\">link

<一个href=\"http://www.modrails.com/documentation/Users%20guide%20Apache.html#_deploying_to_a_virtual_host_8217_s_root\"相对=nofollow>链接

链接

这是一些我用来配置服务器的链接。我也看到了这可能是一个权限问题;我检查了这一点,但我不知道它的罚款。

These are some of the links I used to configure the server. I've also read that could be a permission issue; I've checked that, but I'm not sure it's fine.

推荐答案

答案是乘客给了我403,因为我必须设置环境变量RackEnv在Apache配置发展(在我的情况)。

Answer was that passenger gave me 403 because i had to set environment variable "RackEnv" on apache configuration to "development" (on my case).

这篇关于我得到旅客使用在Apache的钢轨403错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆