# Dynamically define upstream

**URL:** <https://www.ruby-forum.com/t/dynamically-define-upstream/217699>\
**Category:** NGINX\
**Created:** [March 9, 2012, 12:35am UTC](https://www.ruby-forum.com/t/dynamically-define-upstream/217699 "2012-03-09T00:35:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dubstep](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/cdc98d/32.png) [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Post date:** [March 9, 2012, 12:35am UTC](https://www.ruby-forum.com/t/dynamically-define-upstream/217699/1 "2012-03-09T00:35:25Z")

</div>

Hey there,

Is there a way to dynamically configure nginx upstreams - with API or  
via Lua?

Much appreciated!

Posted at Nginx Forum:

> **[Dynamically define upstream](https://forum.nginx.org/read.php?2,223652,223652#msg-223652)**
>
> Hey there, Is there a way to dynamically configure nginx upstreams - with API or via Lua? Much appreciated!
