->
(I didn't bother with the port)
So I configure an API on a local Kong instance as follows:
| Attribute | Value |
|---|---|
| request_host | echo.nw |
| request_path | /echo |
| upstream_url | http://echo.nw:8091 |
| strip_request_path | false |
| preserve_host |
I make my request:
and get back:
All as expected, but now I decide to turn on strip_request_path (thinking it should remove the '/echo') and restart kong.
Make my request:
and get back:
Which is exactly the same value as before.
Am I missing something here?
Sincerely,
Greg Harris
http :8001/apis upstream_url=http://httpbin.org request_path=/httpbin
HTTP/1.1 201 CreatedContent-Type: application/json; charset=utf-8Server: kong/0.5.4
{ "created_at": 1450519058000, "id": "da28f722-495e-4a9c-cab7-0ff0b69a9373", "name": "httpbin", "request_path": "/httpbin", "upstream_url": "http://httpbin.org"}
http :8000/httpbin/getHTTP/1.1 404 NOT FOUNDContent-Length: 233Content-Type: text/html; charset=UTF-8Server: nginxVia: kong/0.5.4
<!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>http PATCH :8001/apis/httpbin strip_request_path=trueHTTP/1.1 200 OKContent-Type: application/json; charset=utf-8Server: kong/0.5.4
{ "created_at": 1450519058000, "id": "da28f722-495e-4a9c-cab7-0ff0b69a9373", "name": "httpbin", "request_path": "/httpbin", "strip_request_path": true, "upstream_url": "http://httpbin.org"}http :8000/httpbin/getHTTP/1.1 200 OKContent-Length: 239Content-Type: application/jsonServer: nginxVia: kong/0.5.4
{ "args": {}, "headers": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Host": "httpbin.org", "User-Agent": "HTTPie/0.9.2" }, "origin": "127.0.0.1, 73.241.244.85", "url": "http://httpbin.org/get"}--
You received this message because you are subscribed to the Google Groups "Kong" group.
To unsubscribe from this group and stop receiving emails from it, send an email to konglayer+...@googlegroups.com.
To post to this group, send email to kong...@googlegroups.com.
Visit this group at https://groups.google.com/group/konglayer.
To view this discussion on the web visit https://groups.google.com/d/msgid/konglayer/cd343b10-d2a6-48d9-af1b-48a6f24218ac%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to konglayer+unsubscribe@googlegroups.com.