[Nitro] scgi questions

rob rob at motionpath.com
Sun Jan 8 17:49:20 EST 2006

I don't know specifically about your issue but a clue could be  
obtained by typing:

grep -r 9999 /path/to/nitro/directory

then looking at the corresponding file. This will reveal where 9999  
is being hard-coded, if it is.

On 8 Jan 2006, at 19:59, James Britt wrote:

> Kevin Williams wrote:
>> I'm trying to get a Nitro app to run under SCGI from Apache 2.0.55  
>> onWindows XP. I got Rails to run in the same environment  
>> yesterday, soI'm pretty sure the Apache/SCGI part is working.
>> I did "gen app ./nitro_scgi" (after creating gen.cmd in Ruby's  
>> binfolder) and added my conf/scgi.yaml file. Am I correct that I  
>> shouldrun "ruby script/scgi_service" to run the app? By doing  
>> that, I seemto get WebRick running on port 9999. I set the  
>> scgi.yaml to use port19999, so I'm not sure where the 9999 came  
>> from. I guess I wish thescgi_rails gem was more generic and I  
>> could use the same for Nitrothat I would for Rails.
>> Also, the "script/scgi_ctl" file didn't like the same "-S"command- 
>> line option to disable POSIX signals, so I added":disable_signals:  
>> true" to scgi.yaml manually.
>> So, how do I get Nitro to do SCGI under Apache2?
> Good question.  I'm right now trying to get a Nitro app to run under
> SCGI + Apache2 on a Linux box, and I keep getting a "port in use"
> exception.  Apparently port 9999 is hard-coded someplace.
> I have scgi.yaml configured to set the port to 6666, I've changed the
> default port values in the local SCGI scripts to 6666, so none of the
> files or scripts in my application folder have 9999 in them, but that
> value is still getting set from someplace.
> Any clues?
> Thanks,
> James
> -- 
> http://www.ruby-doc.org       - Ruby Help & Documentation
> http://www.artima.com/rubycs/ - Ruby Code & Style: Writers wanted
> http://www.rubystuff.com      - The Ruby Store for Ruby Stuff
> http://www.jamesbritt.com     - Playing with Better Toys
> http://www.30secondrule.com   - Building Better Tools
> _______________________________________________
> Nitro-general mailing list
> Nitro-general at rubyforge.org
> http://rubyforge.org/mailman/listinfo/nitro-general

More information about the Nitro-general mailing list