Date: Fri, 5 Jan 2018 10:18:50 -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: <2A2754A8-109D-4E77-90BD-3B8560C0B972@hub.org> In-Reply-To: <2FD5135F-097E-4665-A084-7583E3B16163@hub.org> References: <wu7y3n8w23g.fsf@banyan.cs.ait.ac.th> <8e1589b3-1fbe-9541-dcd3-778bffd3ce43@FreeBSD.org> <8F9BE360-6F16-4CE5-9CD5-20ABF50B8BB6@hub.org> <CA%2Bg%2BBviQwsoZ=EvrbriRJu%2B8rXAKnezpp3gBhBU=7ooEv0_VQg@mail.gmail.com> <2FD5135F-097E-4665-A084-7583E3B16163@hub.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Worked with Olivier =E2=80=A6 PROXY issue he was experiencing has been = resolved =E2=80=A6 > On Jan 4, 2018, at 20:18, Marc G Fournier <scrappy@hub.org> wrote: >=20 >=20 > 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: >=20 > #!/bin/sh -x >=20 > ( note, just adding the x to the end of hte line ) >=20 > then send me the output ( privately, not to the list ) of: >=20 > /usr/local/etc/periodic/monthly/300.statistics -nodelay >=20 > 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: >=20 > /scripts/enable_token.php=E2=80=A6 >=20 >=20 >=20 >> 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" >=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"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?2A2754A8-109D-4E77-90BD-3B8560C0B972>