tzssangglass commented on issue #5633: URL: https://github.com/apache/apisix/issues/5633#issuecomment-982630648
I can't reproduce your problem on the master branch. Here are my reproduction steps. 1. route config: ```shell curl --location --request PUT 'http://127.0.0.1:9080/apisix/admin/routes/1' \ --header 'X-API-KEY: edd1c9f034335f136f87ad84b625c8f1' \ --header 'Content-Type: application/json' \ --data-raw '{ "plugins": { "proxy-rewrite": { "uri": "/get" }, "skywalking": { "sample_ratio": 1 } }, "upstream": { "nodes": { "httpbin.org:80": 1 }, "type": "roundrobin" }, "uri": "/hello" }' ``` 2. skywalking config ```yaml plugin_attr: skywalking: service_name: APISIX service_instance_name: APISIX Instance Name endpoint_addr: http://127.0.0.1:12800 ``` 3. test proxy by APISIX. the uri `/hello` should rewrite by `proxy-rewrite` to `/get` ``` $ curl http://127.0.0.1:9080/hello { "args": {}, "headers": { "Accept": "*/*", "Host": "127.0.0.1", "Sw8": "1-MGMwNmQ4NjUtNGM5Zi00MTNjLTg4YWUtMjZlMjk1ODQ3YWQ1-MGMwNmQ4NjUtNGM5Zi00MTNjLTg4YWUtMjZlMjk1ODQ3YWQ1-1-QVBJU0lY-QVBJU0lYIEluc3RhbmNlIE5hbWU=-L2hlbGxv-dXBzdHJlYW0gc2VydmljZQ==", "User-Agent": "curl/7.64.1", "X-Amzn-Trace-Id": "Root=1-61a623d0-596b05d10f019de71b630319", "X-Forwarded-Host": "127.0.0.1" }, "origin": "127.0.0.1, 180.118.191.92", "url": "http://127.0.0.1/get" } ``` 4. test use `/hello` to access `httpbin` should got 404 ``` $ curl http://httpbin.org:80/hello <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"> <title>404 Not Found</title> <h1>Not Found</h1> <p>The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again.</p> ``` you can see that `proxy-rewrite` and `skywalking` plugins work well. I think you may have been misled by some wrong configurations. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
