I'm trying to move from Apache + Passenger to Nginx + passenger on my Ubuntu Lucid Lynx box.
When I install passenger:
sudo gem install passenger
and
cd /var/lib/gems/1.9.1/gems/passenger-2.2.14/bin
sudo ./passenger-install-nginx-module
everything is fine (no error). Nginx is downloaded and compiled and installed at the same time (when selecting the first option during passenger installation). By default it is installed in /opt/nginx
.
I end up with the configuration file /opt/nginx/conf/nginx.conf
; This conf file was automatically updated with passenger config). The thing I do not understand is that I also have the configuration file /etc/nginx/nginx.conf
. What is the purpose of this one when it seems that the conf file in /opt/...
is the main one?
When I run /etc/init.d/nginx start
, it starts correclty saying that /etc/nginx/nginx.conf
is ok. Does it mean that it does not check the other conf file?
I updated /etc/init.d/nginx
script and added /opt/nginx/sbin
at the beginning of the PATH and it seems the correct conf file is taken into account. It seems like I have two nginx installations where I only relied on passenger to install it.
The Passenger Nginx module registers Passenger-specific configuration options inside Nginx. You, the administrator, configure Passenger by adding Passenger-specific configuration options to the Nginx configuration file. Restart or reload Nginx to apply any configuration changes.
Phusion Passenger® is an open source web application server. It handles HTTP requests, manages processes and resources, and enables administration, monitoring and problem diagnosis. Passenger is very easy to use, makes deploying in production much easier and is scalable.
It is designed to integrate into the Apache HTTP Server or the nginx web server, but also has a mode for running standalone without an external web server. Phusion Passenger supports Unix-like operating systems, and is available as a gem package, as a tarball, or as native Linux packages.
Welcome to the Passenger Library, a comprehensive online resource about Ruby, Python and Node. js deployment, administration, scaling, high availability and more — through the use of the Phusion Passenger application server. The entire library is open source.
You did end up with 2 Nginx installations:
Only (2) has Phusion Passenger support. Ignore (1) and do not use it.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With