Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Install nginx module after installation mac osx

I install nginx with the command: brew install nginx

After I use the module set_real_ip_from in my nginx.conf file:

ginx: [emerg] unknown directive "set_real_ip_froxm" in /usr/local/etc/nginx/nginx.conf:26

I need install the module http_realip_module

But I not know, I try with this

brew reinstall nginx --with-http_realip_module

But not works...

How can install a nginx module?

like image 871
Funny Frontend Avatar asked Jun 23 '16 19:06

Funny Frontend


Video Answer


1 Answers

You could use nginx-full. This allows you to include the module you want. Here are the instructions:

brew tap homebrew/nginx
brew install nginx-full --with-realip

More information in https://github.com/denji/homebrew-nginx

like image 87
Najor Avatar answered Sep 24 '22 20:09

Najor