legacy-server-config/nginx/sites/website

21 lines
474 B
Plaintext
Raw Normal View History

2021-01-01 15:09:53 +00:00
server {
listen 80;
2021-04-12 09:14:55 +00:00
server_name teier.net www.teier.net;
return 301 https://www.teier.net:443$request_uri;
2021-01-01 15:09:53 +00:00
}
server {
listen 443 ssl http2;
2021-04-12 09:14:55 +00:00
server_name teier.net www.teier.net;
2021-01-01 15:09:53 +00:00
2021-01-31 19:52:24 +00:00
root /var/www/html/website;
index index.html;
2021-01-01 15:09:53 +00:00
ssl on;
2021-04-12 09:14:55 +00:00
ssl_certificate /etc/letsencrypt/live/teier.net/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/teier.net/privkey.pem;
2021-01-01 15:09:53 +00:00
location / {
2021-01-31 19:52:24 +00:00
try_files $uri $uri/ =404;
2021-01-01 15:09:53 +00:00
}
}