nginx_config/sites-available/http_2_https
2021-01-23 00:11:23 +01:00

15 lines
298 B
Plaintext

server {
listen 80 default_server;
listen [::]:80 default_server ipv6only=on;
server_name *.de ;
include /etc/nginx/snippets/letsencrypt.conf;
root /var/www/html;
index index.html;
location / {
rewrite ^ https://$http_host$request_uri? permanent; # force redirect http to https
}
}