Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 4 Jan 2018 20:18:28 -0800
From:      Marc G Fournier <scrappy@hub.org>
To:        Olivier Nicole <olivier2553@gmail.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Running bsdstats through a proxy
Message-ID:  <2FD5135F-097E-4665-A084-7583E3B16163@hub.org>
In-Reply-To: <CA+g+BviQwsoZ=EvrbriRJu+8rXAKnezpp3gBhBU=7ooEv0_VQg@mail.gmail.com>
References:  <wu7y3n8w23g.fsf@banyan.cs.ait.ac.th> <8e1589b3-1fbe-9541-dcd3-778bffd3ce43@FreeBSD.org> <8F9BE360-6F16-4CE5-9CD5-20ABF50B8BB6@hub.org> <CA+g+BviQwsoZ=EvrbriRJu+8rXAKnezpp3gBhBU=7ooEv0_VQg@mail.gmail.com>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help

Hrmmm =E2=80=A6 I didn=E2=80=99t write the PROXY code, so if anyone is =
familiar with proxies, please feel free to step up =E2=80=A6 but could =
you modify the code ( /usr/local/etc/periodic/monthly/300.statistics ) =
and change the first line to state:

#!/bin/sh -x

( note, just adding the x to the end of hte line )

then send me the output ( privately, not to the list ) of:

/usr/local/etc/periodic/monthly/300.statistics -nodelay

that should let me see how its re-writing things =E2=80=A6 for starters, =
the truncation at =E2=80=98/sc=E2=80=99 is odd, since it should be =
something like:

/scripts/enable_token.php=E2=80=A6



> On Jan 4, 2018, at 19:50, Olivier Nicole <olivier2553@gmail.com> =
wrote:
>=20
> Marc,
>=20
> On a new machine (FreeBSD 11.1-RELEASE-p6) with bsdstats-6.0_2, I see:
>=20
> The machine contacts the proxy with: HEAD.http://rpt.bsdstats.org/.
> Reply: HTTP/1.0.302Moved.Temporarily
>=20
> Then the machine contacts the proxy with: =
GET.http://rpt.bsdstats.org/sc
> Reply: HTTP/1.0.500.Internal.Server
>=20
> Best regards,
>=20
> Olivier
>=20
> On Fri, Jan 5, 2018 at 8:24 AM, Marc G Fournier <scrappy@hub.org> =
wrote:
>>=20
>> You should be able to just add them to /etc/periodic.conf =E2=80=A6 =
bsdstats on FreeBSD will read its environment variables from there =E2=80=A6=

>>=20
>>=20
>>=20
>>> On Nov 14, 2017, at 23:45, Matthew Seaman <matthew@FreeBSD.org> =
wrote:
>>>=20
>>> On 15/11/2017 05:19, Olivier wrote:
>>>> Hi,
>>>>=20
>>>> I would like to enable bsdstats to run, but I need to configure a =
proxy.
>>>>=20
>>>> I see it rely on the environment variable HTTP_PROXY, but where =
should I
>>>> define it so that it is used by the monthly periodic script and by
>>>> bsdstats launched at boot?
>>>>=20
>>>> TIA,
>>>>=20
>>>> Olivier
>>>>=20
>>>=20
>>> /etc/login.conf should work for you.  You can add whatever =
environment
>>> settings you want to the  :setenv=3DMAIL=3D/var/mail/$,BLOCKSIZE=3DK:\=
 line.
>>>=20
>>> Remember to run 'cap_mkdb /etc/login.conf' after editing the file.
>>>=20
>>>      Cheers,
>>>=20
>>>      Matthew
>>>=20
>>=20
>> _______________________________________________
>> freebsd-questions@freebsd.org mailing list
>> https://lists.freebsd.org/mailman/listinfo/freebsd-questions
>> To unsubscribe, send any mail to =
"freebsd-questions-unsubscribe@freebsd.org"
> _______________________________________________
> freebsd-questions@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to =
"freebsd-questions-unsubscribe@freebsd.org"




Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?2FD5135F-097E-4665-A084-7583E3B16163>