|
OpenBSD Packages and Ports Installation and upgrading of packages and ports on OpenBSD. |
|
Thread Tools | Display Modes |
|
|||
[6.9] nut-cgi && httpd (+slowcgi)
Hi.
I attempt to use nut-cgi with httpd server, on OpenBSD 6.9. (for the little story, I've an Eaton Ellipse ECO 650 USB FR; it's recognized and seems run correctly with the OS, after the pretty configuration…) My file config /etc/nut/ups.conf: Code:
[eaton] desc = "Eaton Ellipse ECO 650 USB FR" driver = "usbhid-ups" port = "auto" vendorid = "0463" productid = "FFFF" product = "Ellipse ECO" serial = "000000000" vendor = "EATON" bus = "005" I changed rights user on the script CGI /var/www/cgi-bin/nut/upsset.cgi to "www:bin": Code:
-rwxr-xr-x 1 www bin 2499656 Apr 19 23:29 upsset.cgi* Code:
types { include "/usr/share/misc/mime.types" } server "default" { listen on 127.0.0.1 port 80 log { access "httpd-default-access.log", error "httpd-default-error.log" } location "/cgi-bin/*.cgi" { fastcgi socket "/run/slowcgi.sock" root "/" } } I created the file '/etc/nut/hosts.conf': Code:
MONITOR eaton@localhost "Eaton Ellipse ECO 650 VA USB FR" Code:
$ grep -v '#' /etc/nut/upsset.conf I_HAVE_SECURED_MY_CGI_DIRECTORY But, when I consult the CGI script, I had always the error message: Quote:
(perhaps, it's not possible to use the nut cgi scripts with httpd; those scripts are wrote for Apache, by default)
__________________
GPG:Fingerprint ed25519 : 072A 4DA2 8AFD 868D 74CF 9EA2 B85E 9ADA C377 5E8E GPG:Fingerprint rsa4096 : 4E0D 4AF7 77F5 0FAE A35D 5B62 D0FF 7361 59BF 1733 Last edited by CiotBSD; 17th July 2021 at 01:20 PM. |
Tags |
httpd, nut-cgi, openbsd |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Automating the "vi /etc/httpd.conf", httpd -n, rcctl restart httpd" treadmill | J65nko | Guides | 0 | 18th May 2021 12:58 AM |
[httpd+slowcgi] Script SGI : for static file | CiotBSD | Programming | 2 | 15th May 2020 06:09 PM |
httpd in a vm on a firewall | thefronny | OpenBSD Security | 1 | 27th January 2019 03:08 PM |
cms for httpd | psypro | OpenBSD General | 1 | 9th August 2016 08:51 PM |
New httpd and PHP | morophla | OpenBSD Packages and Ports | 21 | 31st August 2015 09:54 PM |