legacy-server-config/nginx/sites/website

21 lines
474 B
Plaintext

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