nginx_config/sites-available/http_2_https

15 lines
298 B
Plaintext
Raw Normal View History

2021-01-22 22:21:42 +00:00
server {
listen 80 default_server;
listen [::]:80 default_server ipv6only=on;
2021-01-22 23:10:53 +00:00
2021-01-22 22:21:42 +00:00
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
}
}