Alem Posted June 26, 2025 Posted June 26, 2025 (edited) Solved. install nutserver. https://forum.keenetic.ru/topic/6019-настройка-nut-для-keenetic/page/2/ install lighttpd lighttpd mod-cgi: opkg install lighttpd lighttpd mod-cgi Add / Edit lighttpd.conf: server.port = 81 server.modules + = ("mod_cgi") $HTTP["url"] =~ "^/cgi-bin" { cgi.assign = ( "" => "" ) } make directory inside cgi-bin: mkdir -p /opt/share/www/cgi-bin/nut move Files: mv /opt/share/www/cgi-bin/upsimage.cgi /opt/share/www/cgi-bin/upsset.cgi /opt/share/www/cgi-bin/upsstats.cgi /opt/share/www/cgi-bin/nut/ set the execution permissions : chmod +x /opt/share/www/cgi-bin/nut/*.cgi if you want web contol edit /opt/etc/nut/upsset.conf: remove first 3 ### character I_HAVE_SECURED_MY_CGI_DIRECTORY line. Restart lighttpd: /opt/etc/init.d/S80lighttpd restart open : http://192.168.1.1:81/nut/ Edited Friday at 10:51 AM by Alem Solved. Quote
Question
Alem
Solved.
install nutserver.
https://forum.keenetic.ru/topic/6019-настройка-nut-для-keenetic/page/2/
install lighttpd lighttpd mod-cgi:
opkg install lighttpd lighttpd mod-cgi
Add / Edit lighttpd.conf:
server.port = 81
server.modules + = ("mod_cgi")
$HTTP["url"] =~ "^/cgi-bin" {
cgi.assign = ( "" => "" )
}
make directory inside cgi-bin:
mkdir -p /opt/share/www/cgi-bin/nut
move Files:
mv /opt/share/www/cgi-bin/upsimage.cgi /opt/share/www/cgi-bin/upsset.cgi /opt/share/www/cgi-bin/upsstats.cgi /opt/share/www/cgi-bin/nut/
set the execution permissions :
chmod +x /opt/share/www/cgi-bin/nut/*.cgi
if you want web contol edit /opt/etc/nut/upsset.conf: remove first 3 ### character I_HAVE_SECURED_MY_CGI_DIRECTORY line.
Restart lighttpd:
/opt/etc/init.d/S80lighttpd restart
open : http://192.168.1.1:81/nut/
Edited by AlemSolved.
0 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.