<div dir="ltr"><div>Not fully true about example configs in docs: man pages for CGI bits have some :)</div><div><br></div><div><a href="https://github.com/networkupstools/nut/blob/master/docs/man/upsset.conf.txt">https://github.com/networkupstools/nut/blob/master/docs/man/upsset.conf.txt</a></div><div><a href="https://github.com/networkupstools/nut/blob/master/docs/man/upsstats.cgi.txt">https://github.com/networkupstools/nut/blob/master/docs/man/upsstats.cgi.txt</a></div><div><a href="https://github.com/networkupstools/nut/blob/master/docs/man/hosts.conf.txt">https://github.com/networkupstools/nut/blob/master/docs/man/hosts.conf.txt</a></div><div>etc.<br></div><div><br></div><div>Other than that, check permissions - e.g. OTOH if Apache user may read your /etc/nut/hosts.conf (and the /etc/nut directory - may be inaccessible to non-nut accounts completely, at least in packaging)</div><div><br></div><div>Hope this helps,</div><div>Jim<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Jun 15, 2023 at 12:38 AM Greg Troxel <<a href="mailto:gdt@lexort.com">gdt@lexort.com</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">Dan Grostick via Nut-upsuser <<a href="mailto:nut-upsuser@alioth-lists.debian.net" target="_blank">nut-upsuser@alioth-lists.debian.net</a>><br>
writes:<br>
<br>
> When Apache starts is complains about not finding the fully qualified domain name.<br>
<br>
That seems normal<br>
<br>
> In the past, upsstats.cgi would just load. I didn’t have to do any Apache2 configuration. I don’t know what has changed.<br>
<br>
in general this does need configuration. read the apache config file.<br>
read the apache logs.<br>
<br>
> I’ve build NUT 2.8.0 from source, autogened, configured, make, make<br>
> install, and it is running. Is there something I’m missing that isn’t<br>
> getting updated when I do the make install?<br>
<br>
I would not expect that to adjust apache configs.<br>
<br>
> Upsstats.cgi and the others are located in the cgi-bin/nut/ folder.<br>
<br>
generally one needs a config stanza that says for this web path execute<br>
this binary. Both ScriptAlias and Directory.<br>
<br>
> I can get to <a href="http://192.168.123.49/" rel="noreferrer" target="_blank">http://192.168.123.49/</a> and the Apache page loads.<br>
><br>
> Any suggestions?<br>
<br>
Read the apache manual about to configure cgi. (I'm actually serious.)<br>
<br>
I don't see any example config files in the sources.<br>
<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>