On Mon, 23 Jun 1997, Randy Terbush wrote:
>On that note, can I turn the conversation back to some type of API
>to the config information? By adopting an API, a change in config
>file format can be transparent to GUI developers.
>
>I'm including again the suggestion I made last week. Is this too
>high level?
I like it in principle .. I don't think it needs to talk to
the running server so much as it needs to grok the config
files that the server used to start. Any time we start
talking about adding a module to apache, we're talking about
a far more difficult task. Don't get me wrong .. I like
the idea, it would just take more time to implement.
The example below is nice in that it would allow you to
configure your server using a standard telnet connection,
and is also simple enough to make a nice GUI to wrap
it in. It's very conducive to bulk changes too .. I could
generate a perl script to bulk add Aliases for example using
this paradigm in a really short amount of time.
-Mark
>For example:
>
>telnet config.yourserver.org 8080
>Password: .....
>config>
>config> show config
> .... output of config in familiar format ....
>
>config> show config vhost www.someotherserver.org
> <VirtualHost>
> ServerName www.someotherserver.org
> DocumentRoot .....
> .....
> </VirtualHost>
>config> edit config vhost www.someotherserver.org
>password>.....
>config-edit> documentroot /some/different/directory
>config-edit> save exit
>config> show stats vhost www.someotherserver.org
> ......
>config> save sql sqlhost.server.org
>config> save file /usr/local/etc/httpd.conf
>config> exit
>
>
>With this type of interface to the _running_ configuration of the
>server, everyone here can go out and create whatever GUI they wish.
>It only needs to speak the language of this interface. It offers
>other benefits such as realtime syntax checking, access to running
>configuration info, debugging capability, etc.
>
>Thoughts?
>
>
>
Mark Imbriaco email: <[EMAIL PROTECTED]>
iTribe, Inc. url: http://www.itribe.net/~mark/
Director of Engineering pgp/geek: http://www.itribe.net/~mark/codes.html
W e b W o n d e r s . O n l i n e O d d i t i e s . C o o l S t u f f