apisix
apisix copied to clipboard
help request:
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 -Vornginx -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):
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?