+ / fw.op.fo ➔ wa.fo
This commit is contained in:
@@ -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 /;
|
||||
Reference in New Issue
Block a user