File tree Expand file tree Collapse file tree 2 files changed +0
-72
lines changed Expand file tree Collapse file tree 2 files changed +0
-72
lines changed Original file line number Diff line number Diff line change @@ -384,42 +384,6 @@ make: *** [deps] Error 1
384384
385385This is caused by the missing OpenResty openssl development kit. To install it, refer [installing dependencies](install-dependencies.md).
386386
387- # # How do I access the APISIX Dashboard through Apache APISIX proxy?
388-
389- You can follow the steps below to configure this :
390-
391- 1. Configure different ports for Apache APISIX proxy and Admin API. Or, disable the Admin API.
392-
393- ` ` ` yaml
394- deployment:
395- admin:
396- admin_listen: # use a separate port
397- ip: 127.0.0.1
398- port: 9180
399- ` ` `
400-
401- 2. Add a proxy Route for the Apache APISIX dashboard :
402-
403- ` ` ` shell
404- curl -i http://127.0.0.1:9180/apisix/admin/routes/1 -H "X-API-KEY: $admin_key" -X PUT -d '
405- {
406- "uris":[ "/*" ],
407- "name":"apisix_proxy_dashboard",
408- "upstream":{
409- "nodes":[
410- {
411- "host":"127.0.0.1",
412- "port":9000,
413- "weight":1
414- }
415- ],
416- "type":"roundrobin"
417- }
418- }'
419- ` ` `
420-
421- **Note**: The Apache APISIX Dashboard is listening on `127.0.0.1:9000`.
422-
423387# # How do I use regular expressions (regex) for matching `uri` in a Route?
424388
425389You can use the `vars` field in a Route for matching regular expressions :
Original file line number Diff line number Diff line change @@ -389,42 +389,6 @@ make: *** [deps] Error 1
389389
390390这是由于缺少 OpenResty openssl 开发工具包。要安装它,请参考[installation dependencies](install-dependencies.md)。
391391
392- # # 我如何通过 APISIX 代理访问 APISIX Dashboard?
393-
394- 你可以按照以下步骤进行配置:
395-
396- 1. 为 Apache APISIX 代理和 Admin API 配置不同的端口,或者禁用 Admin API。
397-
398- ` ` ` yaml
399- deployment:
400- admin:
401- admin_listen: # use a separate port
402- ip: 127.0.0.1
403- port: 9180
404- ` ` `
405-
406- 2、添加 APISIX Dashboard 的代理路由:
407-
408- ` ` ` shell
409- curl -i http://127.0.0.1:9180/apisix/admin/routes/1 -H "X-API-KEY: $admin_key" -X PUT -d '
410- {
411- "uris":[ "/*" ],
412- "name":"apisix_proxy_dashboard",
413- "upstream":{
414- "nodes":[
415- {
416- "host":"127.0.0.1",
417- "port":9000,
418- "weight":1
419- }
420- ],
421- "type":"roundrobin"
422- }
423- }'
424- ` ` `
425-
426- **注意**: Apache APISIX Dashboard 正在监听 `127.0.0.1:9000`。
427-
428392# # 如何使用正则表达式 (regex) 匹配 Route 中的 `uri`?
429393
430394你可以在 Route 中使用 `vars` 字段来匹配正则表达式:
You can’t perform that action at this time.
0 commit comments