-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
bug: 上游为域名的时候请求404 #11978
Comments
Hi @kenneth-bro,
|
直接使用apisix是通过什么方式配置?dashboard不维护的话有没有其他的工具? @juzhiyuan |
Hi @kenneth-bro The default way to configure APISIX is by using the Admin API, which is a set of nice and clean REST APIs. You can find the documentation for the latest version here and for APISIX 3.9 here. The APISIX Dashboard simply maps the Admin API calls to some nice TypeScript/JavaScript UI hosted on a Go web server, to facilitate the configuration. However, it's not the recommended way to manage APISIX (nor any API gateway in general, actually) because it's harder to maintain and to integrate in CI/CD processes 👀 There's also a third method, which is based on YAML manifests, but this needs APISIX to be deployed in Standalone Mode and won't use the Etcd database as the configuration center. Side note: consider always using the latest stable APISIX release and keep it updated whenever it's possible 🙂 |
@mikyll 使用API管理不直观且具备的能力要求较高,所以这个方式肯定不会优选吧 |
If your upstream has to be accessed by a domain, I think you may be using some kind of LB that will pass the domain name to discover some kind of “virtual server”, which only allows access to a specific backend through a specific domain name. So when configuring your APISIX upstream, make sure According to the default configuration of APISIX, if you don't configure anything, the domain name that the client sends to the gateway itself will be passthrough to the upstream, not the one you configured in the upstream node.
The API is easy to integrate with various external systems to automate management routes, if this is not an option then you will need an API wrapper to manage configurations, this could be https://github.com/api7/adc to enhance your ability using a bundle of YAML files. Easy to integrate with CI pipeline. |
Current Behavior
请求的就一直404,如果上线为内网IP服务的没问题。经过多次尝试,发现要做域名静态改写?
Expected Behavior
不需要域名静态改写即可访问
Error Logs
No response
Steps to Reproduce
1、配置域名服务为上游
2、配置路由即可。
Environment
apisix version
): 3.9.1uname -a
): debianopenresty -V
ornginx -V
):curl http://127.0.0.1:9090/v1/server_info
): 3.5.0luarocks --version
):The text was updated successfully, but these errors were encountered: