34 lines
1.1 KiB
Plaintext
34 lines
1.1 KiB
Plaintext
|
|
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||
|
|
# configuration of antijantepodden.no / frode klevstul / oct 2025
|
||
|
|
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||
|
|
|
||
|
|
server {
|
||
|
|
listen 80;
|
||
|
|
server_name
|
||
|
|
antijantepodden.no *.antijantepodden.no
|
||
|
|
;
|
||
|
|
rewrite ^/p/ajp(.*)$ https://antijantepodden.com/.ep_ajp$1.html last;
|
||
|
|
return 301 https://antijantepodden.com;
|
||
|
|
}
|
||
|
|
|
||
|
|
server {
|
||
|
|
listen 443 ssl;
|
||
|
|
listen [::]:443 ssl;
|
||
|
|
http2 on;
|
||
|
|
|
||
|
|
ssl_certificate /etc/nginx/acme.sh/antijantepodden.no/fullchain.pem;
|
||
|
|
ssl_certificate_key /etc/nginx/acme.sh/antijantepodden.no/key.pem;
|
||
|
|
ssl_trusted_certificate /etc/nginx/acme.sh/antijantepodden.no/cert.pem;
|
||
|
|
|
||
|
|
server_name
|
||
|
|
antijantepodden.no *.antijantepodden.no
|
||
|
|
;
|
||
|
|
|
||
|
|
# old: https://www.antijantepodden.no/p/ajp063
|
||
|
|
# (new: https://antijanteboka.com/antijantepodden_ajp063.html)
|
||
|
|
# new: https://ajp.fm/.ep_ajp063.html
|
||
|
|
rewrite ^/p/ajp(.*)$ https://antijantepodden.com/.ep_ajp$1.html last;
|
||
|
|
return 301 https://antijantepodden.com;
|
||
|
|
}
|
||
|
|
|