Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

I use homebrew to install nginx, and how to add 3rd modules?

I brew install nginx on my mac, but I don't know where is the configure file, and I use 'brew install nginx --add-module=xxxx' to add modules is not working... please help!!!

like image 533
Bar.B Avatar asked May 02 '13 07:05

Bar.B


2 Answers

The nginx-full brew formula has a number of options that enables you to install 3rd party modules.

See the output of brew info nginx-full.

E.g. the HttpHeadersMoreModule can be installed with the command

brew install nginx-full --with-headers-more-module
like image 121
qff Avatar answered Nov 17 '22 00:11

qff


At this time (April 2018) nginx-full is deprecated by default. To install 3rd party modules:

  1. brew tap denji/nginx
  2. brew install nginx-full --with-nchan-module (or some other module)
like image 37
valex Avatar answered Nov 17 '22 02:11

valex