Open AmerDwight opened 5 months ago
your route was not include nginx_web/mainpage
, u must add a new route to include it
Nice to have your help.
I was considering to set up a route in a general way. So I choose proxy-rewrite to embed the logic.
The mainpage works fine now. The problem is, when i click a link inside mainpage, it won't be able to get recognised by apisix.
I'm asking about is there a way to solve this?
i think its not APISIX's problem, if the link was in the route so it will be recongnised by apisix
Ummm, I can catchup your point.
But if the link is at the same namespace, ex: target.com/mainpage
--> target.com/subpage
Do you mean I shall set up two routes for both of them?
Is it a conventional way to achieve that?
Ummm, I can catchup your point. But if the link is at the same namespace, ex:
target.com/mainpage
-->target.com/subpage
Do you mean I shall set up two routes for both of them?Is it a conventional way to achieve that?
yes, mainpage and subpage was 2 route
Thanks for your help.
I still confuse about that. If I'm a gateway manager, I won't be aware when upstream provider add some pages in their project. Further, if there are some page components that interact with server, how do I set up routings?
BTW, is there any guide or something, that I can refer to? since I didn't find docs related to this topic.
Description
If I set a route for an upstream, which provides a web( html ) in response. And there is a sub link in that page, e.g. mainpage with a link to a sub-page. Then when I click it on blowser, where shall it directs to ?
I don't know if there is a way to solve situ.1 So I tried to build a sample to testify the situ.2
Here are routes that I set in apisix Upstream:nginx_web Routes:
So if the client calls
apisix/web/mainpage
, it directs tonginx_web/mainpage
, which is fine. but when I click in some link to another sub-page, it goes to:apisix/subpage
( I use referal address ) --> and this cannot be identified in apisix routing.How do we solve that? and evenmore, how do we keep clients info to next page?
belows are samples, modified by apisix public case: Upstream:nginx web server
Page: 1.
2.
Environment
apisix version
):apache/apisix:3.6.0-centosuname -a
):Dockeropenresty -V
ornginx -V
):curl http://127.0.0.1:9090/v1/server_info
):bitnami/etcd:3.5