# Dynamic Path from plugin

**URL:** <https://discuss.konghq.com/t/dynamic-path-from-plugin/701>\
**Category:** Questions\
**Created:** [March 16, 2018, 9:22am UTC](https://discuss.konghq.com/t/dynamic-path-from-plugin/701 "2018-03-16T09:22:46Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![thibaultcha](https://yyz2.discourse-cdn.com/flex036/user_avatar/discuss.konghq.com/thibaultcha/32/340_2.png) [@thibaultcha](https://discuss.konghq.com/u/thibaultcha)\
**Post date:** [April 27, 2018, 5:07pm UTC](https://discuss.konghq.com/t/dynamic-path-from-plugin/701/4 "2018-04-27T17:07:19Z")

</div>

A more thorough explanation can be found here:

> [@Changing upstream url](https://discuss.konghq.com/t/changing-upstream-url/261/2):
>
> Hi, As of 0.11.0, and as documented in the [Changelog](https://github.com/Kong/kong/blob/master/CHANGELOG.md#0110---20170816) and [Upgrade path](https://github.com/Kong/kong/blob/master/UPGRADE.md#upgrade-to-011x) of that version, the way to update the upstream URL is via the $upstream\_uri NGINX variable, accessible in the Lua-land as ngx.var.upstream\_uri. The upstream URI is now determined via the Nginx $upstream\_uri variable. Custom plugins using the ngx.req.set\_uri() API will not be taken into consideration anymore. One must now set the ngx.var.upstream\_uri variable from the Lua land. [#2519](https://github.com/Kong/kong/pull/2519) Additionally, you can access the ngx.c…

---

_[View the full topic](https://discuss.konghq.com/t/dynamic-path-from-plugin/701)._
