Toggle off/on¶
Get the config¶
uci show uhttpd
uci show [ hostname ]
uci get [ hostname ].listen_https # the specific config
Turn off https and http => https redirect¶
uci delete [ hostname ].listen_https
uci set [ hostname ].redirect_https='0'
uci commit uhttpd
/etc/init.d/uhttpd restart
Turn on https and http => https redirect¶
uci set [ hostname ].listen_https='[ ip_address ]:443' '[::]:443'
uci set [ hostname ].redirect_https='1'
uci commit uhttpd
/etc/init.d/uhttpd restart