在 openresty 服务器中,upstreams 可能位于哪里?

我得到了一个任务,要在 openresty 服务器上调整 nginx.conf 来添加更多的 location 和 upstream,但是我找不到它们位于哪里。

我可以从 /var/log/openresty/access.log 中看到流量顺利地流向我们的后端,但在 /usr/local/openresty/nginx/conf/nginx.conf 中没有 location。

grep "upstream" /usr/local/openresty/*grep "location" /usr/local/openresty/* 都没有给我有用的信息。

点赞
用户4950680
用户4950680

/usr/local/openresty/nginx/conf/nginx.conf的底部,有一个我错过了的include语句:

include ../sites/*;

我要寻找的配置就在那儿。

2019-07-07 17:36:12