What can be defined in sites-enable/a_site
James Sumners
james.sumners at clayton.edu
Tue Apr 14 16:02:19 CEST 2015
On 2015-04-14 13:54:15 +0000, Phil Mayers said:
> On 14/04/15 14:27, James Sumners wrote:
>> It seems that in addition to virtual server blocks I can also define
>> global clients in a site file. I'd really like to contain all of the
>> configuration specific to my site in one file, including modules. But it
>> doesn't seem like I can define global modules in a site file. Is this
>> correct? I can't find any description of what is actually allowed in
>> such a file; just a description of what is allowed in a virtual server
>> block.
>
> The sites-enabled/x files are just includes; you can put anything in
> there that's valid in an include.
>
> You can't define a module because you can't have multiple modules {}
> sections, i.e. this:
>
> radiusd.conf:
>
> modules {
> a
> b
> }
> include sites-enabled/x
>
> x:
>
> modules {
> c
> d
> }
>
> ...doesn't make sense. You can define listen/client/server blocks in
> sites-enabled/x because you can have miltiple listen/client/server blocks.
>
> In other words, you can put anything that would be valid if you wrote it
> in one big file, in the order it was included.
Okay, that's the way I thought it would work. I just didn't know that
you can't have multiple `modules` blocks. If there's some documentation
that details that, I haven't seen it.
More information about the Freeradius-Users
mailing list