apisix icon indicating copy to clipboard operation
apisix copied to clipboard

help request: 请教如何配置可以进入我自己的server

Open wodingyang opened this issue 11 months ago • 2 comments

Description

我在配置文件中配置了: http_configuration_snippet: | server { listen 443 ssl http2; server_name 10.110.3.51; return 404 } 重启apisix查看nginx.conf已经将该server写入,然后通过浏览器调用 https://10.110.3.51/发现无法进入我设置的server而是进了默认的server,从日志中也可以发现一直打印 init.lua:172: http_ssl_phase(): failed to fetch ssl config: failed to find SNI: please check if the client requests via IP or uses an outdated protocol. If you need to report an issue, provide a packet capture file of the TLS handshake., context: ssl_certificate_by_lua*, client: 10.10.16.129, server: 0.0.0.0:443 我这里查了一点资料nginx应该会默认优先匹配server_name相同的,但是实际情况不是。所以想知道是我配置有问题还是apisix对nginx的底层逻辑做了修改。 谢谢。

Environment

  • APISIX version (run apisix version):
  • Operating system (run uname -a):
  • OpenResty / Nginx version (run openresty -V or nginx -V):
  • etcd version, if relevant (run curl http://127.0.0.1:9090/v1/server_info):
  • APISIX Dashboard version, if relevant:
  • Plugin runner version, for issues related to plugin runners:
  • LuaRocks version, for installation issues (run luarocks --version):

wodingyang avatar Mar 26 '24 12:03 wodingyang

hi could you please update the issue description in english?

shreemaan-abhishek avatar Mar 28 '24 01:03 shreemaan-abhishek

Is there any reason you want to use NGINX's way to configure? If not, please use APISIX native approach to configure the same.

kayx23 avatar Apr 09 '24 03:04 kayx23

Due to lack of the reporter's response this issue has been labeled with "no response". It will be close in 3 days if no further activity occurs. If this issue is still relevant, please simply write any comment. Even if closed, you can still revive the issue at any time or discuss it on the [email protected] list. Thank you for your contributions.

github-actions[bot] avatar Jun 11 '24 10:06 github-actions[bot]

This issue has been closed due to lack of activity. If you think that is incorrect, or the issue requires additional review, you can revive the issue at any time.

github-actions[bot] avatar Jun 14 '24 10:06 github-actions[bot]