summaryrefslogtreecommitdiff
path: root/https_redirect
blob: 8a50c29cb9c3cfe60ba28131e5e3032e669267c5 (plain)
1
2
3
4
5
6
7
8
9
# default http -> https redirect

server {
    listen 80 default_server;
    server_name _;
    location / {
        return 301 https://$host$request_uri;
    }
}