[PLUG] OpenWRT and http routing by host

TomasK tomas.kuchta.lists at gmail.com
Sat Dec 12 00:41:14 UTC 2020


On Fri, 2020-12-11 at 16:05 -0800, Eric House wrote:
> There seems to be a lot of OpenWRT expertise on this list. Having
> failed to find an answer by googling, I'm posting with crossed
> fingers.
> 
> At home I run a webserver for goofing around. I've only had one
> domain
> hosted there and so OpenWRT needed only to forward all traffic on 80
> and 443 to the VM for that domain. Now I want to add a second domain.
> Rather than add a second server config to nginx on the VM I want
> OpenWRT to forward to a different LAN host based on the domain
> targeted by incoming http{,s} traffic.

Could you host that second domain as a virtual domain on the same nginx
VM you already have working? If not, you could definitely proxy through
that to your other web service. That seems to be the easiest route to
achieve that.

-T

> 
> Problem is that OpenWRT already has a mickey-mouse webserver hosting
> the configuration UI. And that server doesn't do anything close to
> routing based on domains. I could replace it with nginx (or so I've
> read), but then I have to figure out how to get the configuration UI
> working. And given that OpenWRT doesn't seem to handle upgrades very
> well once you have non-stock packages involved I'm not confident the
> setup will remain trouble-free.
> 
> 



More information about the PLUG mailing list