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%2Bg%2BBviQwsoZ=EvrbriRJu%2B8rXAKnezpp3gBhBU=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%2Bg%2BBviQwsoZ=EvrbriRJu%2B8rXAKnezpp3gBhBU=7ooEv0_VQg@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Hrmmm … I didn’t write the PROXY code, so if anyone is familiar with proxies, please feel free to step up … 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 … for starters, the truncation at ‘/sc’ is odd, since it should be something like: /scripts/enable_token.php… > On Jan 4, 2018, at 19:50, Olivier Nicole <olivier2553@gmail.com> wrote: > > Marc, > > On a new machine (FreeBSD 11.1-RELEASE-p6) with bsdstats-6.0_2, I see: > > The machine contacts the proxy with: HEAD.http://rpt.bsdstats.org/. > Reply: HTTP/1.0.302Moved.Temporarily > > Then the machine contacts the proxy with: GET.http://rpt.bsdstats.org/sc > Reply: HTTP/1.0.500.Internal.Server > > Best regards, > > Olivier > > On Fri, Jan 5, 2018 at 8:24 AM, Marc G Fournier <scrappy@hub.org> wrote: >> >> You should be able to just add them to /etc/periodic.conf … bsdstats on FreeBSD will read its environment variables from there … >> >> >> >>> On Nov 14, 2017, at 23:45, Matthew Seaman <matthew@FreeBSD.org> wrote: >>> >>> On 15/11/2017 05:19, Olivier wrote: >>>> Hi, >>>> >>>> I would like to enable bsdstats to run, but I need to configure a proxy. >>>> >>>> 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? >>>> >>>> TIA, >>>> >>>> Olivier >>>> >>> >>> /etc/login.conf should work for you. You can add whatever environment >>> settings you want to the :setenv=MAIL=/var/mail/$,BLOCKSIZE=K:\ line. >>> >>> Remember to run 'cap_mkdb /etc/login.conf' after editing the file. >>> >>> Cheers, >>> >>> Matthew >>> >> >> _______________________________________________ >> 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: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?2FD5135F-097E-4665-A084-7583E3B16163>
