Hello. I had a pre-existing installation of nginx that I have been
learning about, and wanted to install passenger over the top of it.
When I add a line to enable passenger, and start the nginx server I
receive the following error message:
Starting nginx: 2009/07/01 23:45:41 [emerg] 26871#0: unknown directive
"passenger_enabled" in /etc/nginx/sites-enabled/BLAHBLAHBLAH:13
It's going to be tough to write it up as a bug because I don't want to
spend the time recreating conditions to repeat on another server, but
does anyone have a clue as to why this problem might occur? The other
passenger_... directives in the nginx.conf file appear to be correct,
and accepted.
The result is that while the passenger_enabled on command is set, I
cannot run nginx. As soon as I remove it, it works fine.
The offending configuration file looks like this:
server
{
listen 80;
server_name
www.BLAHBLAHBLAH.com;
rewrite ^/(.*)
http://BLAHBLAHBLAH.com/$1 permanent;
}
server
{
listen 80;
server_name
test.BLAHBLAHBLAH.com;
root /home/alec/web/BLAHBLAHBLAH.com/test/public;
# passenger_enabled on;
access_log /home/alec/web/BLAHBLAHBLAH.com/log/testaccess.log;
error_log /home/alec/web/BLAHBLAHBLAH.com/log/testerror.log;
location /
{
index index.html;
}
}
server
{
listen 80;
server_name BLAHBLAHBLAH.com;
access_log /home/alec/web/BLAHBLAHBLAH.com/log/access.log;
error_log /home/alec/web/BLAHBLAHBLAH.com/log/error.log;
location /
{
root /home/alec/web/BLAHBLAHBLAH.com/main/public;
index index.html;
}
}