Hi, I'm using the CGI program upsstats.cgi to view the status of UPS's on a web browser. I'd want to do something like that: /var/www/nut-cgi-bin-group-A/upsstats.cgi /var/www/nut-cgi-bin-group-B/upsstats.cgi /var/www/nut-cgi-bin-group-C/upsstats.cgi In that way using .htaccess I allow only certains IPs access to UPS from group A. How could I do that? Thanks in advance" -- Sergio Belkin LPIC-2 Certified - http://www.lpi.org -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.alioth.debian.org/pipermail/nut-upsuser/attachments/20160812/a0680672/attachment.html>
> On Aug 12, 2016, at 2:20 PM, Sergio Belkin <sebelk at gmail.com> wrote: > > Hi, > > I'm using the CGI program upsstats.cgi to view the status of UPS's on a web browser. > > > I'd want to do something like that: > > /var/www/nut-cgi-bin-group-A/upsstats.cgi > /var/www/nut-cgi-bin-group-B/upsstats.cgi > /var/www/nut-cgi-bin-group-C/upsstats.cgiI haven't tried this, but can you create separate configuration directories for each of the groups, and have your web server set the NUT_CONFPATH environment variable for each? You could also wrap upsstats.cgi in a script which does the same thing.