-
Notifications
You must be signed in to change notification settings - Fork 10
/
README
83 lines (59 loc) · 2.36 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
This is a killer build of nginx including most of the good modules out there
It has been patched a little to support luajit-beta-6 and I have made a batteries included
luajit installer that is included with this package.
All you need to do is first install Cmake:
http://www.cmake.org/files/v2.8/cmake-2.8.3-Darwin-universal.tar.gz
(Make sure to also install the bin scripts when it asks you at the end of the installer)
Now to build super-nginx all you need to do is run this from the top level of this checkout:
./build.sh
Or if you also want it to build luajit-beta6 for you:
./build --with-luajit
./build --help will also show usage
If you don't already have LuaJit and just want the full meal deal
make sure to include the --with-luajit flag
You will end up with a 'super-nginx' directory at the top level of this git repo
that is super badass.
Start it up by doing this:
$ cd super-nginx
$ ./sbin/nginx
Then open your browser to:
http://localhost:3000/
The nginx.conf that is included has a few examples already setup, try these url's out and
have a peek at the nginx.conf to see how they work:
# hello world
location /
# another hello world using nginx variables mixed with lua
location /concat
# try access /nginx_var?a=urmom
location /nginx_var
# transparent non-blocking I/O in Lua via subrequests
location /lua
# GET /recur?num=5 this is pretty cool example of recursion in the nginx.conf file
location /recur
Thanks mostly to the work of @agentzh and @chaoslawful for their killer nginx modules
And many thanks to the other nginx module authors that wrote modules I've included in this build
This pretty much makes nginx itself a killer app server that you could write async applications
with in lua that run inside nginx in coroutines never blocking the nginx event loop
this is super powerfull stuff and definitely deserves some blog posts which I will have forthcoming at my blog: http://brainspl.at
Included modules:
array-var-nginx-module
chunkin-nginx-module
drizzle-nginx-module
echo-nginx-module
encrypted-session-nginx-module
form-input-nginx-module
headers-more-nginx-module
lua-nginx-module
lua-redis-parser
memc-nginx-module
nginx-eval-module
nginx-upload-module
nginx-upload-progress-module
ngx_devel_kit
ngx_http_auth_request_module
ngx_http_upstream_keepalive
rds-json-nginx-module
redis2-nginx-module
set-misc-nginx-module
srcache-nginx-module
xss-nginx-module