問題描述
如何在 Windows 2003 上使用 mongrel、lighttpd 和 iis 設置負載平衡的 Rails Web 服務器 (how do i set up a load balanced Rails web server using mongrel, lighttpd and iis on windows 2003)
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.
參考解法
方法 1:
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!
(by Magic Lava、Magic Lava)