ok, thanks to Orest, I think it is solved.
Background:
OpenWrt Luci uses uhttpd as its webserver.
Gargoyle replaces Luci, also using uhttpd.
GL.iNet uses uhttpd as its webserver for Luci
and nginx as its webserver for its own web admin panel.
(so one can set the access ports separately).
reForis seems to use lighttpd as the web server,
and for both reForis and for Luci.
This is why none of the online guides are correct.
1. To change to https port from 443 → nnn
edit /etc/lighttpd/conf.d/40-ssl-enable.conf
change:
$SERVER[“socket”] == “:443” {
ssl.engine = “enable”
}
$SERVER[“socket”] == “[::]:443” {
ssl.engine = “enable”
to
$SERVER[“socket”] == “:nnn” {
ssl.engine = “enable”
}
$SERVER[“socket”] == “[::]:nnn” {
ssl.engine = “enable”
Now, after restarting lighttpd, you can https to port nnn.
but as expected, not to 443.
2. To add xxx as a port for http
edit /etc/lighttpd/conf.d/90-turris-root.conf
$SERVER[“socket”] == ":80” { }
$SERVER[“socket”] == “[::]:80” { }
change to:
$SERVER[“socket”] == ":xxx” { }
$SERVER[“socket”] == “[::]:xxx” { }
Now, after restarting lighttpd, you can http to port xxx.
3. But a funny,
you can now http to both port 80 and port xxx ?!?!
So , now you have to edit /etc/lighttpd/lighttpd.conf
to add a line:
server.port = xxx
Now you can connect http on xxx but not 80.
4. But still one funny outstanding.
if you try to connect on 443 you get the correct error:
Unable to connect
but if you now try to connect on port 80 you get a page with just one lonely line,
obviously output by some confused code:
Network Error when attempting to fetch resource
UPDATE:
After a few reboots and a day of cool-down, this last error seems to have disappeared, so I think I can mark this as a solution.