Originally Posted by almere
rewrite ^ https://$server_name$request_uri? permanent;
listen *:443 ssl;
### the rest of your code
The above method is almost how I'd like to achieve HTTPS over HTTP. According to NGINX, It's best practise for NGINX to use:
return 301 https://$host$request_uri;
However, using this code or the above quoted method needs separate server blocks, correct? --Otherwise you will result with infinite loops.
How does one achieve this with the sites within ISPConfig 18.104.22.168 using the directives field?