init
This commit is contained in:
14
sites-available/http_2_https
Normal file
14
sites-available/http_2_https
Normal file
@ -0,0 +1,14 @@
|
||||
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
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user