uhttpd: add support for enforcing https
[openwrt/openwrt.git] / package / network / services / uhttpd / files / uhttpd.config
index 83734af5a9328bf385e2db6416f950fdcc9d105b..9df6e24527667fd793e43d7005cd705007dc4927 100644 (file)
@@ -9,6 +9,9 @@ config uhttpd main
        list listen_https       0.0.0.0:443
        list listen_https       [::]:443
 
+       # Redirect HTTP requests to HTTPS if possible
+       option redirect_https   1
+
        # Server document root
        option home             /www