Passenger for Nginx


#1

Just for your information, in case you haven’t been flooded by the
tweets and
blog posts, Passenger (a.k.a mod_rails) is available for nginx starting
with
passenger 2.2.0.
Apparently it’s targeted for nginx 0.6.36 (from
bin/passenger-install-nginx-module).

Announcement :


User guide :
http://www.modrails.com/documentation/Users guide Nginx.html


#2

unable to compile nginx 0.7.51 with passenger.
./configure --prefix=/usr/local/nginx
–add-module=…/passenger-2.2.0/ext/nginx

configuring additional modules
adding module in …/passenger-2.2.0/ext/nginx

  • ngx_http_passenger_module was configured

make

-o objs/addon/nginx/Configuration.o
…/passenger-2.2.0/ext/nginx/Configuration.c
…/passenger-2.2.0/ext/nginx/Configuration.c: In function
‘passenger_merge_loc_conf’:
…/passenger-2.2.0/ext/nginx/Configuration.c:402: error:
‘ngx_garbage_collector_temp_handler’ undeclared (first use in this
function)
…/passenger-2.2.0/ext/nginx/Configuration.c:402: error: (Each
undeclared identifier is reported only once
…/passenger-2.2.0/ext/nginx/Configuration.c:402: error: for each
function it appears in.)
cc1: warnings being treated as errors
…/passenger-2.2.0/ext/nginx/Configuration.c:402: warning: passing
argument 1 of ‘ngx_conf_merge_path_value’ from incompatible pointer type
…/passenger-2.2.0/ext/nginx/Configuration.c:402: warning: passing
argument 2 of ‘ngx_conf_merge_path_value’ from incompatible pointer type
…/passenger-2.2.0/ext/nginx/Configuration.c:402: warning: passing
argument 3 of ‘ngx_conf_merge_path_value’ from incompatible pointer type
…/passenger-2.2.0/ext/nginx/Configuration.c:402: warning: passing
argument 4 of ‘ngx_conf_merge_path_value’ makes pointer from integer
without a cast
…/passenger-2.2.0/ext/nginx/Configuration.c:402: error: too many
arguments to function ‘ngx_conf_merge_path_value’
make[1]: *** [objs/addon/nginx/Configuration.o] Error 1
make[1]: Leaving directory `/src/nginx/nginx-0.7.51’
make: *** [build] Error 2


#3

It is currently only compatible for the 0.6.3* series of nginx.

Ezra Z.
removed_email_address@domain.invalid