What is the location of the Phusion Passenger Configuration File?

183 views
Skip to first unread message

raghus

unread,
May 23, 2009, 7:36:48 PM5/23/09
to Phusion Passenger Discussions
I am running Passenger 2.2.2 with Nginx. I was reading this
http://www.modrails.com/documentation/Users%20guide.html#_configuring_phusion_passenger
to see what I could configure/fine tune but I have a more preliminary
question: where does this config file reside and what must it be
called?

Thanks,
Raghu

Hongli Lai

unread,
May 23, 2009, 7:41:57 PM5/23/09
to phusion-...@googlegroups.com

It's just the Nginx configuration file.

--
Phusion | The Computer Science Company

Web: http://www.phusion.nl/
E-mail: in...@phusion.nl
Chamber of commerce no: 08173483 (The Netherlands)

raghus

unread,
May 23, 2009, 8:12:15 PM5/23/09
to Phusion Passenger Discussions
Thanks Hongli.

And the Passenger configuration settings need to go under the server{}
block- I assume. Do you have a sample nginx.conf file you could post
which has Passenger settings?

Thanks for the quick reply,
Raghu

On May 23, 4:41 pm, Hongli Lai <hon...@phusion.nl> wrote:
> On Sun, May 24, 2009 at 1:36 AM, raghus <raghu.sriniva...@gmail.com> wrote:
>
> > I am running Passenger 2.2.2 with Nginx. I was reading this
> >http://www.modrails.com/documentation/Users%20guide.html#_configuring...
> > to see what I could configure/fine tune but I have a more preliminary
> > question: where does this config file reside and what must it be
> > called?
>
> It's just the Nginx configuration file.
>
> --
> Phusion | The Computer Science Company
>
> Web:http://www.phusion.nl/
> E-mail: i...@phusion.nl

raghus

unread,
May 24, 2009, 1:43:01 AM5/24/09
to Phusion Passenger Discussions
I messed around and found the following to work and am posting in the
hope that others will find it useful - and Hongli can correct any
errors I've made. These passenger specific directives can go, as
Hongli says, directly into nginx.conf which for me is at /opt/nginx/
conf

First, I had to say
passenger_max_pool_size 2;

rather than
PassengerMaxPoolSize 2

Next, for directives that the documentation says "This option may only
occur once, in the global server configuration" I had to put in in the
http{} block. passenger_max_pool_size is one such example. For
directives that the documentation says can also occur "In a virtual
host configuration block" you could put in the server{} block also.

(OT, to re-start nginx so that these new directives take effect, I do
a ps -ef and grep for nginx and kill all nginx processes and then do
a /opt/nginx/sbin/nginx. Seems complicated. Is there a simpler/better
way to restart Nginx?)

Hongli Lai

unread,
May 24, 2009, 4:20:25 AM5/24/09
to phusion-...@googlegroups.com
On Sun, May 24, 2009 at 7:43 AM, raghus <raghu.sr...@gmail.com> wrote:
>
> I messed around and found the following to work and am posting in the
> hope that others will find it useful - and Hongli can correct any
> errors I've made. These passenger specific directives can go, as
> Hongli says, directly into nginx.conf which for me is at /opt/nginx/
> conf
>
> First,  I had to say
> passenger_max_pool_size 2;
>
> rather than
> PassengerMaxPoolSize 2

You are looking at the wrong manual. 'www.modrails.com/Users
guide.html' is the old, pre-Nginx manual. Ever since the Nginx version
was released, we've split the manual into two versions, one for Apache
and one for Nginx. These two versions are linked from the website's
Documentation section:
www.modrails.com/documentation.html ->
- "Apache version" -> 'Users guide Apache.html'
- "Nginx version" -> 'Users guide Nginx.html'

--
Phusion | The Computer Science Company

Web: http://www.phusion.nl/
E-mail: in...@phusion.nl

Geediu

unread,
May 24, 2009, 12:18:35 PM5/24/09
to Phusion Passenger Discussions
Hi Hongli,

I also would lie to know if there is a better way to stop or restart
nginx than simply killing the nginx process with a kill command.

Thanks,

Geediu
> > > Chamber of commerce no: 08173483 (The Netherlands)- Hide quoted text -
>
> - Show quoted text -

Hongli Lai

unread,
May 24, 2009, 1:11:00 PM5/24/09
to phusion-...@googlegroups.com
On Sun, May 24, 2009 at 6:18 PM, Geediu <gee...@gmail.com> wrote:
>
> Hi Hongli,
>
> I also would lie to know if there is a better way to stop or restart
> nginx than simply killing the nginx process with a kill command.

There are such scripts, but they're not part of Nginx. You must either
write them yourself or copy the ones made by others. Some people in
the past have posted their scripts.

--
Phusion | The Computer Science Company

Web: http://www.phusion.nl/
E-mail: in...@phusion.nl

Reply all
Reply to author
Forward
0 new messages