Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Nginx unknown directive "proxy_pass"

Tags:

nginx

I'm having a problem with nginx configuration.

When I set the configuration like this:

 server {
         server_name redmine;
        listen       80;

        location / {
           proxy_pass http://172.16.0.70:33000;
        }
}

I get this error nginx: [emerg] unknown directive "proxy_pass".

My nginx version is nginx/1.8.0.

Someone know what i'm missing or what i'm doing wrong? Thanks.

like image 441
Nerea Avatar asked Mar 15 '16 12:03

Nerea


1 Answers

Seems that module ngx_http_proxy_module is not installed

Run nginx -V to view how nginx is configured. If it is configured with option --without-http_proxy_module than nginx doesn't have proxy module and should be recompiled.

like image 176
Max P. Avatar answered Nov 02 '22 01:11

Max P.