21 lines
467 B
Plaintext
21 lines
467 B
Plaintext
server {
|
|
listen 80;
|
|
server_name teier.eu www.teier.eu;
|
|
return 301 https://www.teier.eu:443$request_uri;
|
|
}
|
|
|
|
server {
|
|
listen 443 ssl http2;
|
|
server_name teier.eu www.teier.eu;
|
|
|
|
root /var/www/html/website;
|
|
index index.html;
|
|
|
|
ssl on;
|
|
ssl_certificate /etc/letsencrypt/live/teier.eu/fullchain.pem;
|
|
ssl_certificate_key /etc/letsencrypt/live/teier.eu/privkey.pem;
|
|
|
|
location / {
|
|
try_files $uri $uri/ =404;
|
|
}
|
|
} |