[Nitro] Nitro on Apache
rob at robmela.com
Wed Oct 3 09:08:35 EDT 2007
fcgi is not worth the trouble.
I suggest running Nitro standalone and using Apache's reverse proxying
features as a front-end.
With Apache 2.2 there's mod_proxy_balancer, which is *very* nice.
With both Apache 2.0 and 2.2 you can use mod_rewrite like this:
RewriteRule ^/admin(.*) https://nb.robmela.com/admin$1 [L,R]
RewriteRule ^/(.*) http://127.0.0.1:9001/$1 [L,P]
#ProxyPass / http://127.0.0.1:9001/
#ProxyPassReverse / http://127.0.0.1:9001/
There is one caveat for heavily loaded sites or applications with
long-running pages... which I'll get into later as I'm writing an Apache
/ Mongrel how-to that covers some gotchas.
Arne Brasseur wrote:
> I'm for the first time trying to actually deploy a Nitro app on my
> shared hosting account. I'm trying to use FastCGI since that's what I
> had success with using Rails. It took some tweaking of the FastCGI
> adapter, it seems unmaintained.
> I'm mainly stealing ideas from Rails here, I created a dispatch.fcgi
> that just loads Nitro, sets the mode to :live and requires app.rb. If I
> run it gives the two green lines :
> 03/10 05:13:11 INFO: Og uses the Mysql store.
> 03/10 05:13:11 INFO: Starting Fastcgi server in live mode, listening at
> My .htaccess should be good. Now if I visit the site I get a server 500
> error. The error log mentions :
> [Wed Oct 03 05:11:59 2007] [error] [client 18.104.22.168] FastCGI:
> incomplete headers (0 bytes) received from server "/home/ar
> Have other people gotten this to work? Do I have other options having
> only limited control over the apache configuration?
> Thanks for any pointers!
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 116 bytes
Desc: not available
Url : http://rubyforge.org/pipermail/nitro-general/attachments/20071003/62c0103f/attachment.vcf
More information about the Nitro-general