Skip to content

request help: why proxy_rewrite dones't work well #6209

@purekeeper

Description

@purekeeper

Issue description

I do the demo follow https://apisix.apache.org/docs/apisix/plugins/proxy-rewrite
step1 : curl add route and plugin
step2: curl -X GET http://127.0.0.1:9080/test/index.html,
but i get 502 and the request log is not same with you said ,I think it does not rewite the host to "http://iresty.com/test/home.html .Anybody tell me why ?
image

Environment

  • apisix version (cmd: apisix version):
  • OS (cmd: uname -a):
  • OpenResty / Nginx version (cmd: nginx -V or openresty -V):
  • etcd version, if have (cmd: run curl http://127.0.0.1:9090/v1/server_info to get the info from server-info API):
  • apisix-dashboard version, if have:
  • the plugin runner version, if the issue is about a plugin runner (cmd: depended on the kind of runner):
  • luarocks version, if the issue is about installation (cmd: luarocks --version):

Metadata

Metadata

Assignees

No one assigned

    Labels

    wait for updatewait for the author's response in this issue/PR

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions