开发者

Rails on Subdomain and Custom Port

I have to run rails on a shared host for a client via cPanel.

The application is running on a subdomain and non standard port.

I am using Authlogic, so on the first visit it detects I am not logged in and I get a page with:

You are being redirected.

Clicking on that I get the login form, which then takes me to the target page, with the same redirect message. So the model detects the login, but no cookie or session is ever created.

I have tried the following with no success:

config.action_controller.session = {:domain => '.bbbb.com'}

I've also tried using an activ开发者_如何学Goe record session with same result.

Please help :)

Thanks


Are you using, or have you looked at SubDomainFu?

http://github.com/mbleigh/subdomain-fu

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜