From 4f58248a7d2c0fa96ba03ddd344206764f120288 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Sat, 30 May 2015 20:55:14 +0000 Subject: uhttpd: add support for enforcing https Also set HTTPS environment variable for CGI programs on SSL connections. Signed-off-by: Jo-Philipp Wich SVN-Revision: 45852 --- package/network/services/uhttpd/files/uhttpd.config | 3 +++ 1 file changed, 3 insertions(+) (limited to 'package/network/services/uhttpd/files/uhttpd.config') diff --git a/package/network/services/uhttpd/files/uhttpd.config b/package/network/services/uhttpd/files/uhttpd.config index 83734af5a9..9df6e24527 100644 --- a/package/network/services/uhttpd/files/uhttpd.config +++ b/package/network/services/uhttpd/files/uhttpd.config @@ -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 -- cgit v1.2.3