# Strip\_Path isn't working for Kong 2.5.0

**URL:** <https://discuss.konghq.com/t/strip-path-isnt-working-for-kong-2-5-0/8938>\
**Category:** General\
**Created:** [August 26, 2021, 6:20am UTC](https://discuss.konghq.com/t/strip-path-isnt-working-for-kong-2-5-0/8938 "2021-08-26T06:20:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![genius\_monkey](https://yyz2.discourse-cdn.com/flex036/user_avatar/discuss.konghq.com/genius_monkey/32/2957_2.png) [@genius\_monkey](https://discuss.konghq.com/u/genius_monkey)\
**Post date:** [August 26, 2021, 6:20am UTC](https://discuss.konghq.com/t/strip-path-isnt-working-for-kong-2-5-0/8938/1 "2021-08-26T06:20:02Z")

</div>

Hi All,

I have different set of microservices which have swagger at endpoint “/swagger”.

service 1 has /swagger endpoint  
service 2 has /swagger endpoint

Currently, what I have implemented is this:

service name: abc-svc  
service path: /  
route name: abc-route  
route path: /service1  
strip\_path: true

service name: xyz-svc  
service path: /  
route name: xyz-route  
route path: /service2  
strip\_path: true

Expected:  
When someone visits  
url/service1/swagger, he should be redirected towards swagger page of service1

Actual:  
The strip\_path is not being effective and I land up with url not being found as the request is forwarded as a whole uri (url/service1/swagger) and not url/swagger to the respective backend service.

Can someone please let me know if this is a bug or are my configurations incorrect??

---

<div class="post-metadata">

**Author:** ![fomm](https://avatars.discourse-cdn.com/v4/letter/f/ea666f/32.png) [@fomm](https://discuss.konghq.com/u/fomm)\
**Post date:** [August 26, 2021, 8:23am UTC](https://discuss.konghq.com/t/strip-path-isnt-working-for-kong-2-5-0/8938/2 "2021-08-26T08:23:59Z")

</div>

Can you please tell us what your environment is and how you created the service and route object?

For example,

What platform did you deploy Kong?

Is it DBless or with DB? How did you create service/route object?

If you are running on Kubernetes, did you use annotation or KongIngress CRD to set strip\_path?

Do you have any other routes that might catch this request?

You can use `kong-debug:1` header to see which service/route your request was match to.

---

<div class="post-metadata">

**Author:** ![genius\_monkey](https://yyz2.discourse-cdn.com/flex036/user_avatar/discuss.konghq.com/genius_monkey/32/2957_2.png) [@genius\_monkey](https://discuss.konghq.com/u/genius_monkey)\
**Post date:** [August 26, 2021, 8:38am UTC](https://discuss.konghq.com/t/strip-path-isnt-working-for-kong-2-5-0/8938/3 "2021-08-26T08:38:21Z")

</div>

The kong isn’t kubernetes based. It is simply deployed over on-premise ubuntu 18.04 server as well as the microservices. The interesting part is, if I add another path “/” to the path of route, it servers the swagger page of only that particular service while rest of the service give error.

Kong is configured for postgresql as a db.
