diff --git a/in/public/web/nginx/serve.rst b/in/public/web/nginx/serve.rst index 443eeec..ed8a2b2 100644 --- a/in/public/web/nginx/serve.rst +++ b/in/public/web/nginx/serve.rst @@ -1,10 +1,9 @@ -***** Serve -***** +===== * /etc/nginx/sites-available/… -.. code:: +:: server { listen 80; @@ -35,3 +34,14 @@ Serve } } +Redirect http to https +---------------------- + +:: + + server { + listen 80 default_server; + listen [::]:80 default_server; + server_name _; + return 301 https://${host}${request_uri}; + }