[Nut-upsuser] CGI: multiple web pages

Charles Lepple clepple at gmail.com
Wed Aug 17 03:48:43 UTC 2016

> 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.cgi

I 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.

More information about the Nut-upsuser mailing list