bug-myserver
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [bug-myserver] Configuration?


From: Giuseppe Scrivano
Subject: Re: [bug-myserver] Configuration?
Date: Fri, 04 Mar 2011 00:35:47 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

Hi Ludovic,

actually the myserver.xml file can be empty and the server will use
default values for the different configurations.

If you also have an empty virtualhosts.xml file, then MyServer will not
do any listen(2).  At least one virtual host must be defined to make
MyServer wait for new connections.

To define a new virtual host requires different attributes, some of them
can be optional and I am not sure how it can be done without introduce
weird notations.
Something already present in the TODO list, and I am sure it will excite
you :-) is the implementation of this feature in the `guile_conf' plugin
and get at the end something like:

./myserver --plugins=guile_conf:foo/bar/guile_conf.so \
  --plugin-data="(define vhosts '(("example" "8080" "web" \
                                   "system" "http")))"

Hopefully we will use guile based configuration file as the default
replacing XML.

Cheers,
Giuseppe



address@hidden (Ludovic Courtès) writes:

> Hello,
>
> What is ‘myserver.xml’ supposed to contain?  A void file like this
> doesn’t suffice to get MyServer to listen(2) for connections:
>
> <?xml version="1.0"?>
>
> <MYSERVER>
> </MYSERVER>
>
> A few suggestions (“free advice—you get what you pay for” ;-)):
>
>   1. Add one or more complete examples in the manual that can just be
>      copy/pasted for a start.
>
>   2. Make it possible to start the server without any of the 3
>      configuration files listed in “Basic configuration”, with sane
>      defaults.  This would make it much easier to get started.
>
>   3. Make some of the basic options available from the
>      command-line—e.g., add a ‘--port’ option for the port number.
>
> What do you think?
>
> Thanks,
> Ludo’.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]