+ / fw.op.fo ➔ wa.fo

This commit is contained in:
fro
2025-10-30 06:51:10 -05:00
parent 7b41108981
commit 41ea31a9ba
2 changed files with 88 additions and 0 deletions

View File

@@ -1,12 +1,12 @@
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# configuration of fw.op.fo / frode klevstul / oct 2025
# configuration of wa.fo / frode klevstul / oct 2025
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# sc.op.fo fw.op.fo
# sc.wa.fo & fw.wa.fo ➔ wa.fo
server {
listen 80;
server_name sc.op.fo;
return 301 https://fw.op.fo$request_uri;
server_name sc.wa.fo fw.wa.fo;
return 301 https://wa.fo$request_uri;
}
server {
@@ -14,18 +14,18 @@ server {
listen [::]:443 ssl;
http2 on;
ssl_certificate /etc/nginx/acme.sh/op.fo/fullchain.pem;
ssl_certificate_key /etc/nginx/acme.sh/op.fo/key.pem;
ssl_trusted_certificate /etc/nginx/acme.sh/op.fo/cert.pem;
ssl_certificate /etc/nginx/acme.sh/wa.fo/fullchain.pem;
ssl_certificate_key /etc/nginx/acme.sh/wa.fo/key.pem;
ssl_trusted_certificate /etc/nginx/acme.sh/wa.fo/cert.pem;
server_name sc.op.fo;
return 301 https://fw.op.fo$request_uri;
server_name sc.wa.fo fw.wa.fo;
return 301 https://wa.fo$request_uri;
}
# http to https
server {
listen 80;
server_name fw.op.fo;
server_name wa.fo;
return 301 https://$host$request_uri;
}
@@ -40,15 +40,15 @@ server {
listen [::]:443 ssl;
http2 on;
ssl_certificate /etc/nginx/acme.sh/op.fo/fullchain.pem;
ssl_certificate_key /etc/nginx/acme.sh/op.fo/key.pem;
ssl_trusted_certificate /etc/nginx/acme.sh/op.fo/cert.pem;
ssl_certificate /etc/nginx/acme.sh/wa.fo/fullchain.pem;
ssl_certificate_key /etc/nginx/acme.sh/wa.fo/key.pem;
ssl_trusted_certificate /etc/nginx/acme.sh/wa.fo/cert.pem;
add_header Strict-Transport-Security "max-age=63072000" always;
root /var/www/fw.op.fo;
root /var/www/fw.wa.fo;
index index.html;
server_name fw.op.fo;
server_name fw.wa.fo;
location @myownredirect {
return 302 /;