[Nitro] Nitro and Apache.
Walter
Walter at mwsewall.com
Wed Oct 12 15:03:53 EDT 2005
Can anyone point me to any docs of using Nitro With Apache.
I currently have an Apache server (Apache/2.0.52 running on Windows) that runs as a service and I use to execute other ruby based CGI scripts.
I am trying to get Nitro working with this setup.
I created a virtual host with some rewrite rules to always call cgi.cgi, which is jus cgi.rb renamed.
<VirtualHost *>
ServerName nitro
DocumentRoot C:\dev\ruby\nitro\test1\public
<Directory C:\dev\ruby\nitro\test1\public>
Options ExecCGI FollowSymLinks
AllowOverride all
Allow from all
Order allow,deny
RewriteEngine on
RewriteBase /nitro:8080/
RewriteRule !^.+\.cgi - [C]
RewriteRule (.*) /cgi.cgi/$1
</Directory>
ScriptAlias /cgi-bin/ "C:\dev\ruby\nitro\test1\test1\public\"
</VirtualHost>
My run.rb has mappings of
App.map = { "/" => Test, "/legalListForDrivers" => LegalListForDrivers}
If I type in http://nitro:8080/ I do get the index page of the TestController. And if I type in http://nitro:8080/legalListForDrivers I do get the index page of the LegalListForDriversController. The problem is if I enter data into the form fields and submit it, I seem to be getting errors reading in the data passed in.
[Wed Oct 12 13:00:18 2005] [error] [client 127.0.0.1] Premature end of script headers: cgi.cgi, referer: http://nitro:8080/legalListForDrivers/
[Wed Oct 12 13:00:18 2005] [error] [client 127.0.0.1] c:/ruby/lib/ruby/gems/1.8/gems/nitro-0.23.0/lib/nitro/adapter/cgi.rb:227:in `parse_params': undefined method `binmode' for nil:NilClass (NoMethodError)\r, referer: http://nitro:8080/legalListForDrivers/
[Wed Oct 12 13:00:18 2005] [error] [client 127.0.0.1] \tfrom c:/ruby/lib/ruby/gems/1.8/gems/nitro-0.23.0/lib/nitro/adapter/cgi.rb:32:in `start'\r, referer: http://nitro:8080/legalListForDrivers/
[Wed Oct 12 13:00:18 2005] [error] [client 127.0.0.1] \tfrom c:/ruby/lib/ruby/gems/1.8/gems/nitro-0.23.0/lib/nitro/server/runner.rb:242:in `invoke'\r, referer: http://nitro:8080/legalListForDrivers/
[Wed Oct 12 13:00:18 2005] [error] [client 127.0.0.1] \tfrom c:/ruby/lib/ruby/gems/1.8/gems/nitro-0.23.0/lib/nitro/server.rb:125:in `run'\r, referer: http://nitro:8080/legalListForDrivers/
[Wed Oct 12 13:00:18 2005] [error] [client 127.0.0.1] \tfrom C:/dev/ruby/nitro/test1/public/../run.rb:56\r, referer: http://nitro:8080/legalListForDrivers/
[Wed Oct 12 13:00:18 2005] [error] [client 127.0.0.1] \tfrom c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in `require__'\r, referer: http://nitro:8080/legalListForDrivers/
[Wed Oct 12 13:00:18 2005] [error] [client 127.0.0.1] \tfrom c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in `require'\r, referer: http://nitro:8080/legalListForDrivers/
[Wed Oct 12 13:00:18 2005] [error] [client 127.0.0.1] \tfrom C:/dev/ruby/nitro/test1/public/cgi.cgi:5\r, referer: http://nitro:8080/legalListForDrivers/
Can anyone point me in the right direction.
Any help would be greatly appreciated.
Thanks,
Walt
--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.344 / Virus Database: 267.11.14/129 - Release Date: 10/11/2005
More information about the Nitro-general
mailing list