uHTTPd serving multiple websites on the same port

Hi guys. I am trying to reuse as much existing components of OpenWrt as possible to serve my environment.

I started looking at uHTTPd recently. How to configure it to serve multiple websites at the same port 80 and 443? I will always use a domain name e.g website1.openwrt.lan and website2.openwrt.lan to access it. I do not want to use IP addresses with different port numbers.

By the way the User Guide only mentions php7. Does it support php8 yet? Can I expect uHTTPd to work with web applications made for Nginx and Apache HTTP server?

not nit picking, but you can use FQDNs with port numbers too ...
don't think uhttpd supports multiple virtual hosts like apache.
perhaps if you put sslh in front of uhttpd, acting as a SNI proxy.

1 Like

Haproxy in front is not an option?

1 Like

nginx should be able to run both luci and multiple vhosts.

1 Like