gpt4 book ai didi

nginx - proxy_pass 不使用/etc/hosts 解析 DNS

转载 作者:行者123 更新时间:2023-12-04 02:18:53 24 4
gpt4 key购买 nike

在 nginx 中 proxy_pass指令未使用 /etc/hosts 解析 DNS文件。有什么方法可以实现这种可能性(也许将 Lua 作为最后的手段)?

最佳答案

总之,你需要在本地安装 dnsmasq 并使用 127.0.0.1 作为解析器。

请参阅此相关问答:

When using proxy_pass, can /etc/hosts be used to resolve domain names instead of "resolver"?

关于nginx - proxy_pass 不使用/etc/hosts 解析 DNS,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29980884/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com