+/ moved sc.op.fo to own cfg file
This commit is contained in:
24
cfg/ngx/sc.op.fo.conf
Normal file
24
cfg/ngx/sc.op.fo.conf
Normal file
@@ -0,0 +1,24 @@
|
|||||||
|
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||||
|
# configuration of sc.op.fo / frode klevstul / oct 2025
|
||||||
|
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||||
|
|
||||||
|
# sc.op.fo ➔ wa.fo (http)
|
||||||
|
server {
|
||||||
|
listen 80;
|
||||||
|
server_name sc.op.fo;
|
||||||
|
return 301 https://wa.fo$request_uri;
|
||||||
|
}
|
||||||
|
|
||||||
|
# sc.op.fo ➔ wa.fo (https)
|
||||||
|
server {
|
||||||
|
listen 443 ssl;
|
||||||
|
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;
|
||||||
|
|
||||||
|
server_name sc.op.fo;
|
||||||
|
return 301 https://wa.fo$request_uri;
|
||||||
|
}
|
||||||
@@ -2,31 +2,6 @@
|
|||||||
# configuration of wa.fo / frode klevstul / oct 2025
|
# configuration of wa.fo / frode klevstul / oct 2025
|
||||||
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||||
|
|
||||||
# <<<<< REDIRECTS OF OTHER DOMAINS >>>>>
|
|
||||||
|
|
||||||
# sc.op.fo ➔ wa.fo (http)
|
|
||||||
server {
|
|
||||||
listen 80;
|
|
||||||
server_name sc.op.fo;
|
|
||||||
return 301 https://wa.fo$request_uri;
|
|
||||||
}
|
|
||||||
|
|
||||||
# sc.op.fo ➔ wa.fo (https)
|
|
||||||
server {
|
|
||||||
listen 443 ssl;
|
|
||||||
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;
|
|
||||||
|
|
||||||
server_name sc.op.fo;
|
|
||||||
return 301 https://wa.fo$request_uri;
|
|
||||||
}
|
|
||||||
|
|
||||||
# <<<<< SETUP OF MAIN DOMAIN >>>>>
|
|
||||||
|
|
||||||
# enforce ssl and bare domain (http)
|
# enforce ssl and bare domain (http)
|
||||||
# ($server_name will return the first value given)
|
# ($server_name will return the first value given)
|
||||||
server {
|
server {
|
||||||
|
|||||||
Reference in New Issue
Block a user