2023-11-07 16:49:13 +01:00
|
|
|
server {
|
|
|
|
listen 80;
|
|
|
|
listen [::]:80;
|
|
|
|
|
2023-11-14 16:49:27 +01:00
|
|
|
server_name eh21.easterhegg.eu;
|
2023-11-07 16:49:13 +01:00
|
|
|
|
|
|
|
location /.well-known/acme-challenge {
|
|
|
|
default_type "text/plain";
|
|
|
|
alias /var/www/acme-challenge;
|
|
|
|
}
|
|
|
|
|
|
|
|
location / {
|
2023-11-14 16:49:27 +01:00
|
|
|
return 301 https://eh21.easterhegg.eu$request_uri;
|
2023-11-07 16:49:13 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
server {
|
|
|
|
listen 443 ssl http2;
|
|
|
|
listen [::]:443 ssl http2;
|
|
|
|
|
2023-11-14 16:49:27 +01:00
|
|
|
server_name eh21.easterhegg.eu;
|
2023-11-07 16:49:13 +01:00
|
|
|
|
2023-11-14 16:49:27 +01:00
|
|
|
ssl_certificate_key /etc/nginx/ssl/eh21.easterhegg.eu.key;
|
|
|
|
ssl_certificate /etc/nginx/ssl/eh21.easterhegg.eu.crt;
|
2023-11-07 16:49:13 +01:00
|
|
|
|
2023-11-14 16:49:27 +01:00
|
|
|
root /var/www/eh21;
|
2023-11-07 16:49:13 +01:00
|
|
|
}
|
2023-11-15 17:15:12 +01:00
|
|
|
|
|
|
|
server {
|
|
|
|
listen 80;
|
|
|
|
listen [::]:80;
|
|
|
|
|
|
|
|
server_name engel.eh21.easterhegg.eu;
|
|
|
|
|
|
|
|
location /.well-known/acme-challenge {
|
|
|
|
default_type "text/plain";
|
|
|
|
alias /var/www/acme-challenge;
|
|
|
|
}
|
|
|
|
|
|
|
|
location / {
|
|
|
|
return 301 https://engel.eh21.easterhegg.eu$request_uri;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
server {
|
|
|
|
listen 443 ssl http2;
|
|
|
|
listen [::]:443 ssl http2;
|
|
|
|
|
|
|
|
server_name engel.eh21.easterhegg.eu;
|
|
|
|
|
|
|
|
ssl_certificate_key /etc/nginx/ssl/eh21.easterhegg.eu.key;
|
|
|
|
ssl_certificate /etc/nginx/ssl/eh21.easterhegg.eu.crt;
|
|
|
|
|
|
|
|
root /var/www/engel;
|
|
|
|
}
|