Welcome! Log In Create A New Profile

Advanced

Re: Is nginx.conf file dynamically updatable

May 04, 2010 06:52AM
nginx.conf file in inf format or any other template based format would have
been the easiest thing to do. perhaps future version of nginx can go down
this route.

On Mon, May 3, 2010 at 9:12 PM, Michael Shadle <mike503@gmail.com> wrote:

> I have a php command line script that builds separate conf files in one of
> my servers and does simple string replacement.
>
> Also remember you can use includes so you can leave the main nginx.conf
> alone and have it include stuff from another directory you write out..
>
>
> On May 3, 2010, at 6:24 AM, Luca De Marinis <loop@interact.it> wrote:
>
> On Mon, May 3, 2010 at 3:07 PM, Ziyad Saeed < <myschizobuddy@gmail.com>
> myschizobuddy@gmail.com> wrote:
>
>> So I store the configuration in a database or xml file or whatever, and
>> then generate the conf file from it.
>> thank you.
>>
>
> Also, using a templating system with a scripting language (say, erb + ruby
> or whatever you're comfortable with) or the good old m4 may be viable, and
> probably simpler to use and implement. This is very easy and very convenient
> if you have to generate lots of different configurations (say, for n virtual
> hosts, or n virtual hosts on n servers) but which all share a limited number
> of prototype configurations.
>
> Bye
>
>
>>
>>
>> On Mon, May 3, 2010 at 3:14 AM, Gabriel Evans < <me@gabevans.com>
>> me@gabevans.com> wrote:
>>
>>> There's no API that I know of, unless you want to make your own module.
>>> You could try having a separate directory for virtual hosts included and use
>>> a database to store and generate the configuration. It'd be a lot easierthan trying to interpret the configuration as well.
>>>
>>> On Sun, May 2, 2010 at 4:21 AM, Ziyad Saeed < <myschizobuddy@gmail.com>
>>> myschizobuddy@gmail.com> wrote:
>>>
>>>>
>>>> Inorder to make a simple UI for editing nginx.conf. I need a way to edit
>>>> nginx.conf without having to open it up in a text editor. Does nginx have an
>>>> api that i can use to edit information that is inside nginx.conf. This will
>>>> help newbies add virtual host information and edit parameters via a UI.
>>>>
>>>
>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://nginx.org/mailman/listinfo/nginx
>
>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://nginx.org/mailman/listinfo/nginx
>
>
_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

Is nginx.conf file dynamically updatable

MySchizoBuddy May 02, 2010 07:26AM

Re: Is nginx.conf file dynamically updatable

Gabriel Evans May 02, 2010 05:20PM

Re: Is nginx.conf file dynamically updatable

MySchizoBuddy May 03, 2010 09:14AM

Re: Is nginx.conf file dynamically updatable

Luca De Marinis May 03, 2010 09:28AM

Re: Is nginx.conf file dynamically updatable

mike May 03, 2010 12:40PM

Re: Is nginx.conf file dynamically updatable

MySchizoBuddy May 04, 2010 06:52AM

Re: Is nginx.conf file dynamically updatable

Luca De Marinis May 04, 2010 07:08AM

Re: Is nginx.conf file dynamically updatable

mike May 04, 2010 12:04PM

Re: Is nginx.conf file dynamically updatable

MySchizoBuddy May 07, 2010 04:12AM

Re: Is nginx.conf file dynamically updatable

mike May 07, 2010 04:22AM

Re: Is nginx.conf file dynamically updatable

Joshua Jonah May 07, 2010 06:26AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 187
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready