Files
resty_functions/conf/local_macos/test.conf
T
2022-03-12 21:51:13 +08:00

26 lines
683 B
Plaintext

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;
}
location /api/ngx/test/uri {
content_by_lua_file $resty_loc/nginx/scripts/tests/uri.lua;
}
location /api/ngx/test/nested_exit {
content_by_lua_file $resty_loc/nginx/scripts/tests/nested_exit.lua;
}
}