Open galaxy-zh opened 3 months ago
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>
apisix version
uname -a
openresty -V
nginx -V
curl http://127.0.0.1:9090/v1/server_info
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?
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
创建二个容器 在创建一个简单的路由
╰─# curl 127.0.0.1:9060/v1/index.php
1715851507
╰─# curl test.top
Environment
apisix version
):uname -a
):openresty -V
ornginx -V
):curl http://127.0.0.1:9090/v1/server_info
):luarocks --version
):