You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Piotr Redel <pi...@gmail.com> on 2023/12/05 10:11:59 UTC

[users@httpd] Problem set addressttl

Hi
I have apache version 2.4.54. I wanted to add the addressttl=60 parameter
in the BalancerMember section. I have the proxy module enabled. In the
mod_proxy.c configuration you can see that it is

else if (!strcasecmp(key, "addressttl")) {

        /* Address TTL in seconds

         */

        apr_interval_time_t ttl;

        if (strcmp(val, "-1") == 0) {

            worker->s->address_ttl = -1;

        }

        else if (ap_timeout_parameter_parse(val, &ttl, "s") == APR_SUCCESS

                 && (ttl <= apr_time_from_sec(APR_INT32_MAX))

                 && (ttl % apr_time_from_sec(1)) == 0) {

            worker->s->address_ttl = apr_time_sec(ttl);

        }

        else {

            return "AddressTTL must be -1 or a number of seconds not "

                   "exceeding " APR_STRINGIFY(APR_INT32_MAX);

        }

        worker->s->address_ttl_set = 1;

Unfortunately, after setting the parameter, I have the error AH00526:
Syntax error on line 43 of /etc/apache2/sites-enabled/dev.mcdonalds.pl.conf:

BalancerMember unknown Worker parameter

Action '-t' failed.

I also tried Apache 2.4.58 and the same thing. Could you please help me
-- 



*PozdrawiamPiotr Redel*

Re: [users@httpd] Problem set addressttl

Posted by Piotr Redel <pi...@gmail.com>.
Thank you very much for the information.

wt., 5 gru 2023 o 14:18 Yann Ylavic <yl...@gmail.com> napisał(a):

> Hi;
>
> On Tue, Dec 5, 2023 at 11:13 AM Piotr Redel <pi...@gmail.com> wrote:
> >
> > I have apache version 2.4.54. I wanted to add the addressttl=60
> parameter in the BalancerMember section.
>
> The addressttl parameter is a new feature not part by any release yet,
> it will be in the next one (2.4.59).
> Your only options for now are to use a patched version of httpd or
> wait for the next release.
>
>
> Regards;
> Yann.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>

-- 




*PozdrawiamPiotr Redelpiotr.redel@gmail.com
<pi...@gmail.com>----------------------------------*
*http://www. <http://www.lx.waw.pl>l2x.ovh*

Re: [users@httpd] Problem set addressttl

Posted by Yann Ylavic <yl...@gmail.com>.
Hi;

On Tue, Dec 5, 2023 at 11:13 AM Piotr Redel <pi...@gmail.com> wrote:
>
> I have apache version 2.4.54. I wanted to add the addressttl=60 parameter in the BalancerMember section.

The addressttl parameter is a new feature not part by any release yet,
it will be in the next one (2.4.59).
Your only options for now are to use a patched version of httpd or
wait for the next release.


Regards;
Yann.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org