Temat: Gargoyle 1.10.0.3 - uhttpd nowa instancja
Witam.
Jestem początkujący. Próbuję dodać drugą instancję w uhttpd.
GUI przeniosłem na port 9999
Wykonałem:
# uci add uhttpd serv
# uci set uhttpd.@serv[-1].listen_http=0.0.0.0:80
# uci set uhttpd.@serv[-1].home=/www1
# uci commit uhttpd
# /etc/init.d/uhttpd restart
Jednak brak nasłuchiwania na tym porcie.
/etc/config/uhttpd wygląda:
config uhttpd 'main'
option index_file 'login.sh'
option index_page 'login.sh'
option error_page '/login.sh'
option no_dirlists '1'
list listen_https '0.0.0.0:443'
option home '/www'
option rfc1918_filter '1'
option max_requests '50'
option max_connections '200'
option cert '/etc/uhttpd.crt'
option key '/etc/uhttpd.key'
option cgi_prefix '/cgi-bin'
list interpreter '.sh=/usr/bin/run_haserl'
list interpreter '.csv=/usr/bin/run_haserl'
option script_timeout '900'
option network_timeout '30'
option http_keepalive '20'
option max_connections '200'
option cert '/etc/uhttpd.crt'
option key '/etc/uhttpd.key'
option cgi_prefix '/cgi-bin'
list interpreter '.sh=/usr/bin/run_haserl'
list interpreter '.csv=/usr/bin/run_haserl'
option script_timeout '900'
option network_timeout '30'
option http_keepalive '20'
option tcp_keepalive '1'
option listen_http '0.0.0.0:9999'
config serv
option listen_http '0.0.0.0:80'
option home '/www1'netstat -nap
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:9999 0.0.0.0:* LISTEN 12120/uhttpd
tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN 1332/portmap
tcp 0 0 0.0.0.0:53 0.0.0.0:* LISTEN 2820/dnsmasq
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 1591/dropbear
tcp 0 0 0.0.0.0:443 0.0.0.0:* LISTEN 12120/uhttpd
tcp 0 336 81.190.*.*:22 94.254.242.242:44802 ESTABLISHED 12288/dropbear
netstat: /proc/net/tcp6: No such file or directory
udp 0 0 0.0.0.0:53 0.0.0.0:* 2820/dnsmasq
udp 0 0 0.0.0.0:67 0.0.0.0:* 2820/dnsmasq
udp 0 0 0.0.0.0:111 0.0.0.0:* 1332/portmap
udp 0 0 0.0.0.0:123 0.0.0.0:* 1547/ntpd
udp 0 0 0.0.0.0:1194 0.0.0.0:* 4918/openvpn
netstat: /proc/net/udp6: No such file or directory
netstat: /proc/net/raw6: No such file or directory
Active UNIX domain sockets (servers and established)
Proto RefCnt Flags Type State I-Node PID/Program name Path
unix 10 [ ] DGRAM 1830 1286/logd /dev/log
unix 2 [ ACC ] STREAM LISTENING 300 481/ubusd /var/run/ubus.sock
unix 2 [ ] DGRAM 2754 1998/hostapd /var/run/hostapd/wlan0
unix 2 [ ] DGRAM 27020 1/procd
unix 2 [ ] DGRAM 2654 1873/ddns_gargoyle
unix 3 [ ] STREAM CONNECTED 1833 481/ubusd /var/run/ubus.sock
unix 2 [ ] DGRAM 4341 2820/dnsmasq
unix 3 [ ] STREAM CONNECTED 2063 481/ubusd /var/run/ubus.sock
unix 2 [ ] DGRAM 2000 1332/portmap
unix 2 [ ] DGRAM 2331 1591/dropbear
unix 3 [ ] STREAM CONNECTED 2757 481/ubusd /var/run/ubus.sock
unix 2 [ ] DGRAM 6921 4918/openvpn
unix 2 [ ] DGRAM 2434 1389/netifd
unix 3 [ ] STREAM CONNECTED 2756 1998/hostapd
unix 2 [ ] DGRAM 18396 1998/hostapd
unix 3 [ ] STREAM CONNECTED 311 481/ubusd /var/run/ubus.sock
unix 2 [ ] DGRAM 2467 1389/netifd
unix 3 [ ] STREAM CONNECTED 310 1/procd
unix 3 [ ] STREAM CONNECTED 2062 1389/netifd
unix 3 [ ] STREAM CONNECTED 1832 1286/logd