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.