admin:embed_the_power_of_lua_into_nginx
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| admin:embed_the_power_of_lua_into_nginx [2015/09/04 23:49] – [Solution] ryan | admin:embed_the_power_of_lua_into_nginx [2015/09/05 08:24] (current) – [Testing] ryan | ||
|---|---|---|---|
| Line 188: | Line 188: | ||
| ==== 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.1441410599.txt.gz · Last modified: 2015/09/04 23:49 by ryan