denji / homebrew-nginx

:fire_engine: Community NGINX tap for custom modules
https://denji.github.io/homebrew-nginx/
Other
616 stars 198 forks source link

[TODO] The list of modules included by the addition #49

Closed denji closed 8 years ago

denji commented 10 years ago

List modules / www.nginx.com/resources/wiki/modules/

When you are finished working on one of the queries, add the commit message tag #49

ToastShaman commented 10 years ago

Any chance we could add the "spdy" module as well to the list?

marcqualie commented 10 years ago

@ToastShaman the spdy modue is already supported. You can compile with the --with-spdy flag like this:

brew install nginx-full --with-spdy

A full list of modules we currently support are at http://brew.sh/homebrew-nginx/

ahuigo commented 10 years ago

Successful install with no error:

$ brew install nginx-full --with-echo-moudle

But it has no echo-moudle:

$ nginx
nginx: [emerg] unknown directive "echo" in /usr/local/etc/nginx/nginx.conf:52
$ nginx -V
nginx version: nginx/1.6.0
built by clang 5.1 (clang-503.0.40) (based on LLVM 3.4svn)
TLS SNI support enabled
configure arguments: --prefix=/usr/local/Cellar/nginx-full/1.6.0 --with-http_ssl_module --with-pcre --with-ipv6 --sbin-path=/usr/local/Cellar/nginx-full/1.6.0/bin/nginx --with-cc-opt=-I/usr/local/include --with-ld-opt=-L/usr/local/lib --conf-path=/usr/local/etc/nginx/nginx.conf --pid-path=/usr/local/var/run/nginx.pid --lock-path=/usr/local/var/run/nginx.lock --http-client-body-temp-path=/usr/local/var/run/nginx/client_body_temp --http-proxy-temp-path=/usr/local/var/run/nginx/proxy_temp --http-fastcgi-temp-path=/usr/local/var/run/nginx/fastcgi_temp --http-uwsgi-temp-path=/usr/local/var/run/nginx/uwsgi_temp --http-scgi-temp-path=/usr/local/var/run/nginx/scgi_temp --http-log-path=/usr/local/var/log/nginx/access.log --error-log-path=/usr/local/var/log/nginx/error.log
marcqualie commented 10 years ago

@hilojack It may be a typo but you have --with-echo-moudle and not --with-echo-module. I ran this locally and the echo module was successfully installed and display in the configure command.

ahuigo commented 10 years ago

What a stupid question I made. Many thanks for your help :+1:

heri16 commented 10 years ago

Ssl tack should be prioritized, considering the NSA revelations.

milaney commented 9 years ago

Any chance we could add UnZip?

denji commented 9 years ago

@milaney https://github.com/Homebrew/homebrew-nginx/commit/70abef8d8e3f967a261c74f87c599cb426d4898c

milaney commented 9 years ago

Thanks, that was super quick! Just tried a quick update / reinstall on 10.10 and received the following. Am I missing something? I've used homebrew for ages but just recently tapped this repo.

macbook:~ mm$ brew reinstall nginx-full --with-debugn --with-subs-filter-modulen --with-subn --with-echo-modulen --with-addition --with-spdy --with-redis2-module --with-xslt --with-accept-language-module --with-consistent-hash-module --with-gzip-static --with-fancyindex-module --with-php-session-module --with-push-stream-module --with-unzip-module
==> Reinstalling nginx-full with --with-debug, --with-subs-filter-module, --with-sub, --with-echo-module, --with-addition, --with-spdy, --with-redis2-module, --with-xslt, --with-accept-lan
==> Downloading http://nginx.org/download/nginx-1.6.2.tar.gz
Already downloaded: /Library/Caches/Homebrew/nginx-full-1.6.2.tar.gz
==> ./configure --prefix=/usr/local/Cellar/nginx-full/1.6.2 --with-http_ssl_module --with-pcre --with-ipv6 --sbin-path=/usr/local/Cellar/nginx-full/1.6.2/bin/nginx --with-cc-opt=-I/usr/loc
==> make
         ^
1 error generated.
make[1]: *** [objs/addon/unzip-nginx-module/ngx_http_unzip_module.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make: *** [build] Error 2
denji commented 9 years ago
$ brew install nginx-full --with-unzip-module --verbose
.....
In file included from /usr/local/share/unzip-nginx-module/ngx_http_unzip_module.c:35:
/usr/local/include/zip.h:53:10: fatal error: 'zipconf.h' file not found
#include <zipconf.h>
         ^
1 error generated.
make[1]: *** [objs/addon/unzip-nginx-module/ngx_http_unzip_module.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make: *** [build] Error 2

$ find /usr/local -iname 'zipconf.h'
/usr/local/Cellar/libzip/0.11.2/lib/libzip/include/zipconf.h
denji commented 9 years ago

@milaney Temporary fix errors:

ln -vs /usr/local/opt/libzip/lib/libzip/include/zipconf.h /usr/local/include
brew install nginx-full --with-unzip-module -v

issues: https://github.com/Homebrew/homebrew/issues/13390

DomT4 commented 9 years ago

^ Try adding a CFLAG to that directory in the formula, before the ./configure step. That should do the trick.

ENV.append_to_cflags "-I#{Formula["libzip"].opt_prefix}/lib/libzip/include"
milaney commented 9 years ago

@DomT4 Thanks, that worked!

laike9m commented 9 years ago

Do you have plan adding HttpRedis?

denji commented 9 years ago

@laike9m HttpRedis2 Module already supported, pull request are welcome

laike9m commented 9 years ago

HttpRedis2 is different from HttpRedis, in many ways...

denji commented 9 years ago

@laike9m Homebrew/homebrew-nginx@c5a854a

laike9m commented 9 years ago

Great! But I think it's better to call it httpredis rather than redis.

jeffrigby commented 9 years ago

I'm having trouble getting cjson (http://www.kyne.com.au/~mark/software/lua-cjson-manual.html#_make) to work correctly when I build it with luarocks or manually. Can we add an option for this in the install? Or is there another way I should be compiling this outside of homebrew?

I get: dlopen(/usr/local/lib/lua/5.1/cjson.so, 6): Symbol not found: _luaL_setfuncs

jeffrigby commented 9 years ago

I've actually figured out how to install cjson manually if anyone is curious: Install luajit: brew install luajit

Download cjson from here: http://www.kyne.com.au/%7Emark/software/lua-cjson.php

Open the Makefile and change: LUA_INCLUDE_DIR = $(PREFIX)/include/ to LUA_INCLUDE_DIR = $(PREFIX)/include/luajit-2.0

Run: make install

You will get some warnings but it seems to work fine for me. I saw these warnings when building against non jit lua as well.

Mirocow commented 9 years ago

please add ngx_http_accounting_module (https://github.com/Lax/ngx_http_accounting_module) https://github.com/Mirocow/homebrew-nginx/blob/master/Formula/http-accounting-nginx-module.rb

lock[bot] commented 5 years ago

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.