diff --git a/conf/nginx.conf b/conf/nginx.conf index 309809b..ba7717a 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -1,5 +1,8 @@ location PATHTOCHANGE { alias ALIASTOCHANGE ; + if ($scheme = http) { + rewrite ^ https://$server_name$request_uri? permanent; + } index index.php; try_files $uri $uri/ index.php; location ~ [^/]\.php(/|$) { @@ -12,6 +15,9 @@ location PATHTOCHANGE { } } location PATHTOCHANGE/http-bind { + if ($scheme = http) { + rewrite ^ https://$server_name$request_uri? permanent; + } proxy_pass http://127.0.0.1:5290/http-bind; proxy_set_header Host $host; proxy_buffering off;