Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

help request: #11258

Open
galaxy-zh opened this issue May 16, 2024 · 1 comment
Open

help request: #11258

galaxy-zh opened this issue May 16, 2024 · 1 comment

Comments

@galaxy-zh
Copy link

galaxy-zh commented May 16, 2024

Description

docker run -it --name etcd
--network host
--env ALLOW_NONE_AUTHENTICATION=yes -d bitnami/etcd:3.4.9

docker run --name test-api-gateway
--network host
-d apache/apisix

创建二个容器
在创建一个简单的路由

{
	"total": 1,
	"list": [{
		"key": "/apisix/routes/513915265587613668",
		"createdIndex": 125,
		"modifiedIndex": 125,
		"value": {
			"upstream": {
				"scheme": "http",
				"type": "roundrobin",
				"keepalive_pool": {
					"size": 320,
					"idle_timeout": 60,
					"requests": 1000
				},
				"timeout": {
					"send": 6,
					"connect": 6,
					"read": 6
				},
				"pass_host": "pass",
				"nodes": {
					"127.0.0.1:9060": 1
				}
			},
			"name": "test",
			"uri": "/*",
			"methods": ["GET", "POST", "PUT", "DELETE", "PATCH", "HEAD", "OPTIONS", "CONNECT", "TRACE", "PURGE"],
			"id": "513915265587613668",
			"update_time": 1715846968,
			"status": 1,
			"plugins": {
				"proxy-rewrite": {
					"scheme": "http"
				}
			},
			"create_time": 1715846968,
			"host": "test.top"
		}
	}]
}

╰─# curl 127.0.0.1:9060/v1/index.php
1715851507

╰─# curl test.top

<html>
<head><title>404 Not Found</title></head>
<body>
<center><h1>404 Not Found</h1></center>
<hr><center>nginx</center>
</body>
</html>

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):
@kayx23
Copy link
Member

kayx23 commented Jun 5, 2024

Please update the description and title accordingly for better readability.

In which step did you update the port to 9060? The error doesn't even look like it's coming from APISIX. Did you have NGINX running?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 📋 Backlog
Development

No branches or pull requests

2 participants