如何在 Windows 2003 上使用 mongrel、lighttpd 和 iis 设置负载平衡的 Rails Web 服务器

发布于 2024-07-24 09:06:41 字数 523 浏览 2 评论 0原文

我知道这不是执行此操作的完美环境,但请继续关注我并提供帮助(如果可以的话)...

我想要实现的设置是使用一组杂种让我的 Rails 应用程序在 Windows 2003 服务器上运行lighttpd 充当负载平衡器,前面的 IIS 将客户端请求传递给 lighttpd。

首先我遵循了这些说明: 部署到 Windows 上的 iis

已经设法让应用程序运行,但是如果客户端单击链接按钮,应用程序就会崩溃并出现 500 服务器错误。

如果我只是针对其中一台混合服务器运行,则该应用程序的行为正常,所以我认为它是 lightpd。

就好像lighttpd 与多个GET 请求(即多次点击)混淆并崩溃一样。

任何关于为什么我收到 500 个错误的帮助都会有帮助,谢谢。

I understand that this is not the perfect environment for doing this but please stick with me and help if you can...

The set up I want to achieve is to have my rails application running on a windows 2003 server, using a pack of mongrels with lighttpd acting as the load balancer and IIS in front of it all passing client requests to lighttpd.

first of all i've followed these instructions:
deploying to iis on windows

And I've managed to get the application to run, BUT if the client clicks on a link button the app bombs out with a 500 server error.

If I just run against one of the mongrel servers, the the app behaves ok, so I think its lightpd.

Its almost as if the lighttpd gets confused with multiple GET requests (i.e. multiple clicks) and bombs out.

Any help on why i'm getting 500 errors would be helpful, thanks.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

殤城〤 2024-07-31 09:06:41

好的,我发现 lighttpd 的 -D 选项导致了问题。 我不知道到底为什么,但去掉这个选项似乎可行!

Ok, I found that the -D option for lighttpd was causing the problem. I dont know why exactly, but taking that option out seems to work!

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文