Strange error

236 views
Skip to first unread message

Manish Shah

unread,
Apr 14, 2015, 7:21:54 PM4/14/15
to phusion-...@googlegroups.com
Suddenly, my server started stating:

2015/04/14 18:14:08 [emerg] 18697#0: unknown directive "passenger_set_cgi_param" in /etc/nginx/sites-enabled/default:31


Here's my config:

server {
        listen 80 default_server;
        listen [::]:80 default_server ipv6only=on;

        # Make site accessible from http://myserver/
        server_name myserver;

        passenger_enabled on;
        root /sites/app.com/public;

        proxy_set_header X-Accel-Mapping /sites/app.com/locs/=/locs/;
        passenger_set_cgi_param HTTP_X_ACCEL_MAPPING /sites/app.com/locs/=/locs/;
        passenger_pass_header X-Accel-Redirect;


        location /locs/ {
           internal;
           root /sites/app.com/$1;
        }

}


I have two instances load balanced, and the other instance is working fine with the exact configuration.

When I uncomment the passenger_set_cgi_param, it restarts fine.

I am using passenger/nginx on ubuntu 14.04 and I even retried reinstalling. Still same issue.

Any assistance would be helpful.

Tinco Andringa

unread,
Apr 15, 2015, 10:17:43 AM4/15/15
to phusion-...@googlegroups.com
Hi,

In Passenger 5.0.1 passenger_set_cgi_param was replaced by two other settings, you can see the change log here:


Kind regards,
Tinco

On Wed, Apr 15, 2015 at 1:21 AM, Manish Shah <man...@acceleweb.com> wrote:
Suddenly, my server started stating:

2015/04/14 18:14:08 [emerg] 18697#0: unknown directive "passenger_set_cgi_param" in /etc/nginx/sites-enabled/default:31


Here's my config:

server {
        listen 80 default_server;
        listen [::]:80 default_server ipv6only=on;

        # Make site accessible from http://localhost/
        server_name localhost;


        passenger_enabled on;
        root /sites/app.com/public;

        proxy_set_header X-Accel-Mapping /sites/app.com/locs/=/locs/;
        passenger_set_cgi_param HTTP_X_ACCEL_MAPPING /sites/app.com/locs/=/locs/;
        passenger_pass_header X-Accel-Redirect;


        location /locs/ {
           internal;
           root /sites/app.com/$1;
        }

}


I have two instances load balanced, and the other instance is working fine with the exact configuration.

When I uncomment the passenger_set_cgi_param, it restarts fine.

I am using passenger/nginx on ubuntu 14.04 and I even retried reinstalling. Still same issue.

Any assistance would be helpful.

--
You received this message because you are subscribed to the Google Groups "Phusion Passenger Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to phusion-passen...@googlegroups.com.
To post to this group, send email to phusion-...@googlegroups.com.
Visit this group at http://groups.google.com/group/phusion-passenger.
To view this discussion on the web visit https://groups.google.com/d/msgid/phusion-passenger/df1b81fe-3ac3-48bd-93e6-9d4fdcf240cd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Phusion | Web application deployment, scaling and monitoring solutions

Web: http://www.phusion.nl/
E-mail: in...@phusion.nl
Chamber of commerce no: 08173483 (The Netherlands)
Reply all
Reply to author
Forward
0 new messages