|
server {
|
|
listen 80 default_server http2;
|
|
listen [::]:80 default_server http2;
|
|
server_name ~.*;
|
|
|
|
access_log /var/log/nginx/http-to-https-access.log combined_full;
|
|
error_log /var/log/nginx/http-to-https-error.log;
|
|
|
|
return 302 https://$host$request_uri;
|
|
}
|
|
|