From lists at ruby-forum.com Thu Oct 15 01:43:19 2009 From: lists at ruby-forum.com (Jay Chan) Date: Thu, 15 Oct 2009 07:43:19 +0200 Subject: [Mongrel] Mongrel behind Apache server as reverse proxy Message-ID: <47ce4c8d122c12451593925cb4816fff@ruby-forum.com> Hello Have set up reverse proxy for running a ruby app on mongrel (on windows)? Apache has error in balancer log client denied by server configuration Is there something in Mongrel which is causing this? And on browser get error Forbidden You don't have permission to access /appname on this server. Thank you -- Posted via http://www.ruby-forum.com/. From lists at ruby-forum.com Mon Oct 26 18:14:39 2009 From: lists at ruby-forum.com (Ole morten Amundsen) Date: Mon, 26 Oct 2009 23:14:39 +0100 Subject: [Mongrel] Mongrel .pids disappearing? In-Reply-To: <5801C7961B62634F9D3513FBFC860C6C03073922@CCHSCLEXMB55.cc.ad.cchs.net> References: <3a96987f0809031617n7bfb33a1kd80ca8c51ec516cf@mail.gmail.com> <4ebd6478ed2a2c5a210b0b58987a03de@ruby-forum.com> <5801C7961B62634F9D3513FBFC860C6C03073922@CCHSCLEXMB55.cc.ad.cchs.net> Message-ID: <7d3c3deca05ee04044aa954de4409386@ruby-forum.com> I spent so much time on this pid sh.. googling for hours. Hope I can help others! Seems like running as a daemon solves the problem. just add -d at the end and it decides to create the pid file. I'm sorry if this isn't the problem/solution you guys are having. mongrel_rails start -d It really tricked me with its output on mongrel_rails. ** Starting Mongrel listening at 0.0.0.0:3000 ** Starting Rails with development environment... ** Rails loaded. ** Loading any Rails specific GemPlugins ** Signals ready. TERM => stop. USR2 => restart. INT => stop (no restart). ** Rails signals registered. HUP => reload (without restart). It might not work well. ** Mongrel 1.1.5 available at 0.0.0.0:3000 Of, course, neither restart nor stop worked, so I tried sending that USR2 signal manually, finding it's pid with ps, then kill -USR2 20316 Back in the first term window I saw this: * USR2 signal received. ** Restarting with arguments: ruby /Library/Ruby/Gems/1.8/gems/mongrel-1.1.5/bin/mongrel_rails start Can't restart unless in daemon mode. OK, trying the obvious worked. You can see the pid file is there in the log directory. Or am I totally off here?? -- Posted via http://www.ruby-forum.com/.