Hi! 2016-04-02 8:26 GMT+02:00 Marion & Christophe JAILLET < christophe.jail...@wanadoo.fr>:
> Hi, > > mod_macro states that: > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > If you want to use a value within another string, it is useful to surround > the parameter in braces, to avoid confusion: > > <Macro DocRoot ${docroot}> > DocumentRoot "*/var/www/*${docroot}/htdocs" > </Macro> > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > > As written in the comment below, it works but it triggers a warning. > > When the directive is parsed, we first try to resolve env variable. This > is why we get the warning. > > In order to fix it we could just update the doc. > For example, using [] instead of {} works fine. > Or we could stipulate that if [} are used, then the in % prefix should be > used instead of $. > > > Any opinion? > I would prefer to use %{} rather than $[] but it is only a matter of taste, no strong argument in favor of one or the other. I took a look to https://httpd.apache.org/docs/current/mod/mod_macro.html and it seems a bit confusing that in "Tips" we suggest to use ${} in order to embed something into a string but we don't follow this convention throughout the doc page. Am I missing something? Thanks! Luca