popen solution

This commit is contained in:
2022-03-08 20:46:50 +08:00
parent 4df12ebbec
commit 67ce137e3f
2 changed files with 8 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
server {
# https://serverfault.com/questions/798734/use-variable-for-server-name-in-nginx#
# server_name $servername;
server_name "test.localhost";
listen 8088;
set $resty_loc "/usr/local/opt/openresty";
location /api/ngx/test/co {
content_by_lua_file $resty_loc/nginx/scripts/tests/co.lua;
}
location /api/ngx/test/popen {
content_by_lua_file $resty_loc/nginx/scripts/tests/popen.lua;
}
}