# Nginx configuration

**URL:** <https://www.ruby-forum.com/t/nginx-configuration/244384>\
**Category:** NGINX\
**Created:** [March 30, 2016, 10:05pm UTC](https://www.ruby-forum.com/t/nginx-configuration/244384 "2016-03-30T22:05:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rafa\_F](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/958977/32.png) [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Post date:** [March 30, 2016, 10:05pm UTC](https://www.ruby-forum.com/t/nginx-configuration/244384/1 "2016-03-30T22:05:54Z")

</div>

Hello,

I need to create a web interface to configure my nginx reverse proxy. I  
only  
know how to configure nginx with the configuration file. Is there  
another  
way to change the configurations, like a REST API, so I can make it  
dynamically?

Any tip will be very helpful,  
Thanks.

Posted at Nginx Forum:

> **[Nginx configuration](https://forum.nginx.org/read.php?2,265742,265742#msg-265742)**
>
> Hello, I need to create a web interface to configure my nginx reverse proxy. I only know how to configure nginx with the configuration file. Is there another way to change the configurations, like a REST API, so I can make it dynamically? Any tip...

---

<div class="post-metadata">

**Author:** ![marcosbontempo](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/f04885/32.png) [@marcosbontempo](https://www.ruby-forum.com/u/marcosbontempo)\
**Post date:** [March 31, 2016, 5:30am UTC](https://www.ruby-forum.com/t/nginx-configuration/244384/2 "2016-03-31T05:30:27Z")

</div>

No there is no rest api for generating nginx config dynamically.

Please see below link for other options:

> <https://stackoverflow.com/questions/15277453/any-good-way-to-programmatically-change-nginx-config-file-from-python>

---

<div class="post-metadata">

**Author:** ![marcosbontempo](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/f04885/32.png) [@marcosbontempo](https://www.ruby-forum.com/u/marcosbontempo)\
**Post date:** [March 31, 2016, 10:05pm UTC](https://www.ruby-forum.com/t/nginx-configuration/244384/3 "2016-03-31T22:05:51Z")

</div>

Thanks for your answer! It was exactly what I wanted. I’ll use  
nginx-conf.

Posted at Nginx Forum:

> **[Re: Nginx configuration](https://forum.nginx.org/read.php?2,265742,265769#msg-265769)**
>
> Hello, I need to create a web interface to configure my nginx reverse proxy. I only know how to configure nginx with the configuration file. Is there another way to change the configurations, like a REST API, so I can make it dynamically? Any tip...
