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?
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With