admin:embed_the_power_of_lua_into_nginx
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| admin:embed_the_power_of_lua_into_nginx [2015/09/04 23:46] – created ryan | admin:embed_the_power_of_lua_into_nginx [2015/09/05 08:24] (current) – [Testing] ryan | ||
|---|---|---|---|
| Line 183: | Line 183: | ||
| ls -al rpmbuild/ | ls -al rpmbuild/ | ||
| - | yum localinstall nginx-lua-1.8.0-1.el6.ngx.x86_64.rpm | + | yum localinstall nginx-lua-1.8.0-1.el6.rdemo.x86_64.rpm |
| </ | </ | ||
| ==== Testing ==== | ==== Testing ==== | ||
| - | To test out the new functionality, | + | To test out the new functionality, |
| <file c default.conf> | <file c default.conf> | ||
| server { | server { | ||
| Line 201: | Line 201: | ||
| } | } | ||
| </ | </ | ||
| - | Our test file is called '' | + | Our test file is called '' |
| The code is pretty straightforward: | The code is pretty straightforward: | ||
| Line 214: | Line 214: | ||
| ngx.header.content_type = ' | ngx.header.content_type = ' | ||
| for k, v in pairs(headers) do | for k, v in pairs(headers) do | ||
| - | print(string.format(" | + | print(string.format(" |
| end | end | ||
| </ | </ | ||
admin/embed_the_power_of_lua_into_nginx.1441410374.txt.gz · Last modified: 2015/09/04 23:46 by ryan