ungleich-certbot/nginx-http-redir.conf
2022-01-30 21:22:18 +01:00

16 lines
262 B
Text

server {
listen *:80;
listen [::]:80;
server_name _;
root /www_http;
location /.well-known/acme-challenge/ {
root /www_http;
}
# Everything else -> ssl
location / {
return 301 https://$host$request_uri;
}
}