<div dir="ltr"><div>Thanks, I'll post an update :)</div><div><br></div><div>Jim<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Apr 24, 2023 at 10:37 PM Phil Stracchino via Nut-upsuser <<a href="mailto:nut-upsuser@alioth-lists.debian.net">nut-upsuser@alioth-lists.debian.net</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">The good news:<br>
While gathering information for this post, I solved the ORIGINAL problem <br>
I was going to post about, which was figuring out how to change the <br>
low-battery limit on my CyberPower PR3000LCDRTXL2U UPS with expansion <br>
chassis.  With three battery packs, the default 20% is absurd.<br>
<br>
<br>
However, during the course of finally getting around to getting <br>
upsdet.cgi working, I found the security advice in upsset.conf to be <br>
highly outdated.<br>
<br>
upsset.conf gives the following access restriction syntax ...<br>
<br>
#       <Files upsset.cgi><br>
#       deny from all<br>
#       allow from your.network.addresses<br>
#       </Files><br>
<br>
This syntax is long obsolete, at least in Apache.  It should currently <br>
be done in a fashion generally similar to this:<br>
<br>
<br>
     ScriptAlias /upsstats.cgi /usr/share/nut/cgi/upsstats.cgi<br>
     ScriptAlias /upsset.cgi /usr/share/nut/cgi/upsset.cgi<br>
<br>
     <Directory "/usr/share/nut/cgi"><br>
         Options +Includes +ExecCGI<br>
         AllowOverride Limit<br>
         <RequireAny><br>
             Require local<br>
             Require ip aa.bb.cc.dd/nn<br>
         </RequireAny><br>
     </Directory><br>
<br>
<br>
<br>
-- <br>
   Phil Stracchino<br>
   Babylon Communications<br>
   <a href="mailto:phils@caerllewys.net" target="_blank">phils@caerllewys.net</a><br>
   <a href="mailto:phil@co.ordinate.org" target="_blank">phil@co.ordinate.org</a><br>
   Landline: +1.603.293.8485<br>
   Mobile:   +1.603.998.6958<br>
<br>
_______________________________________________<br>
Nut-upsuser mailing list<br>
<a href="mailto:Nut-upsuser@alioth-lists.debian.net" target="_blank">Nut-upsuser@alioth-lists.debian.net</a><br>
<a href="https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/nut-upsuser" rel="noreferrer" target="_blank">https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/nut-upsuser</a><br>
</blockquote></div>