# Multiple paths rewriting (proxying) by Kong

**URL:** <https://discuss.konghq.com/t/multiple-paths-rewriting-proxying-by-kong/5590>\
**Category:** General\
**Created:** [February 20, 2020, 12:25pm UTC](https://discuss.konghq.com/t/multiple-paths-rewriting-proxying-by-kong/5590 "2020-02-20T12:25:56Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hamed\_Hatami](https://yyz2.discourse-cdn.com/flex036/user_avatar/discuss.konghq.com/hamed_hatami/32/1672_2.png) [@Hamed\_Hatami](https://discuss.konghq.com/u/Hamed_Hatami)\
**Post date:** [February 20, 2020, 12:25pm UTC](https://discuss.konghq.com/t/multiple-paths-rewriting-proxying-by-kong/5590/1 "2020-02-20T12:25:56Z")

</div>

Hi Harry,

I have multiple paths deployed with one microservice underneath of Kong.  
So there are three Ingresses and each Ingress has it’s own KongIngress kind.  
But we have only one Service kind on top of them so I have to introduce all KongIngresses as a list by saying  
annotations:  
[configuration.konghq.com](http://configuration.konghq.com): iot-first-api, iot-second-api

But it seems to be happy just when the value is one and if you want to have multiple values as a list , it doesn’t work anymore

---

<div class="post-metadata">

**Author:** ![hbagdi](https://yyz2.discourse-cdn.com/flex036/user_avatar/discuss.konghq.com/hbagdi/32/562_2.png) [@hbagdi](https://discuss.konghq.com/u/hbagdi)\
**Post date:** [February 20, 2020, 11:22pm UTC](https://discuss.konghq.com/t/multiple-paths-rewriting-proxying-by-kong/5590/2 "2020-02-20T23:22:01Z")

</div>

Can you elaborate on what you are trying to accomplish with the comma separate value list?

You don’t necessarily need to association KongIngress with Service resource. You only need to do that if you want to override certain properties specific to Kong.

---

<div class="post-metadata">

**Author:** ![Hamed\_Hatami](https://yyz2.discourse-cdn.com/flex036/user_avatar/discuss.konghq.com/hamed_hatami/32/1672_2.png) [@Hamed\_Hatami](https://discuss.konghq.com/u/Hamed_Hatami)\
**Post date:** [February 21, 2020, 4:56am UTC](https://discuss.konghq.com/t/multiple-paths-rewriting-proxying-by-kong/5590/3 "2020-02-21T04:56:32Z")

</div>

The problem is that I have several backend paths in one Ingress and also one service but I have to proxy each of the to the different paths

```
http:
    paths:

      - path: /iot/api/method1
        backend:
          serviceName: myService
          servicePort: 80

      - path: /iot/api/method2
        backend:
          serviceName: myService
          servicePort: 80

```

The end-user must see and invoke “/iot/api/method1” and “/iot/api/method2”  
But  
First path needs to be routed to “/api/hello/ahhh/method1” (actual path of rest api)  
Second path needs to be routed to “/rest/bye/hey/api/method2” (actual path of rest api)

Both of them have the same Service -\> “myService”

---

<div class="post-metadata">

**Author:** ![Hamed\_Hatami](https://yyz2.discourse-cdn.com/flex036/user_avatar/discuss.konghq.com/hamed_hatami/32/1672_2.png) [@Hamed\_Hatami](https://discuss.konghq.com/u/Hamed_Hatami)\
**Post date:** [February 24, 2020, 3:49pm UTC](https://discuss.konghq.com/t/multiple-paths-rewriting-proxying-by-kong/5590/4 "2020-02-24T15:49:22Z")

</div>

I’m still looking forward to hearing from you

---

<div class="post-metadata">

**Author:** ![hbagdi](https://yyz2.discourse-cdn.com/flex036/user_avatar/discuss.konghq.com/hbagdi/32/562_2.png) [@hbagdi](https://discuss.konghq.com/u/hbagdi)\
**Post date:** [February 25, 2020, 5:44pm UTC](https://discuss.konghq.com/t/multiple-paths-rewriting-proxying-by-kong/5590/5 "2020-02-25T17:44:32Z")

</div>

You can use request transformer plugin for each ingress resource to manipulate the path.
