Files

26 lines
684 B
Plaintext
Raw Permalink Normal View History

2022-03-08 20:08:50 +08:00
server {
# https://serverfault.com/questions/798734/use-variable-for-server-name-in-nginx#
# server_name $servername;
2022-08-24 01:05:21 +08:00
server_name "test2.localhost";
2022-03-08 20:08:50 +08:00
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;
}
2022-03-08 20:46:50 +08:00
location /api/ngx/test/popen {
content_by_lua_file $resty_loc/nginx/scripts/tests/popen.lua;
}
2022-03-08 21:59:25 +08:00
location /api/ngx/test/uri {
content_by_lua_file $resty_loc/nginx/scripts/tests/uri.lua;
}
2022-03-12 21:50:52 +08:00
location /api/ngx/test/nested_exit {
content_by_lua_file $resty_loc/nginx/scripts/tests/nested_exit.lua;
}
2022-03-08 20:08:50 +08:00
}