nginx/serve/redirect

This commit is contained in:
Marc Beninca 2019-08-05 12:07:26 +02:00
parent 2f41476240
commit ca7a37f689

View file

@ -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};
}