2025-11-02 18:42:35 -05:00
|
|
|
# - - - - - - - - - - - - - - - - - - -
|
|
|
|
|
# configuration of antijantepodden.com
|
|
|
|
|
# by nzwlm stmdabct
|
|
|
|
|
# - - - - - - - - - - - - - - - - - - -
|
|
|
|
|
|
|
|
|
|
# enforce ssl and bare domain (without www) for http requests
|
|
|
|
|
# ($server_name will return the first value given)
|
|
|
|
|
server {
|
|
|
|
|
listen 80;
|
|
|
|
|
server_name antijantepodden.com www.antijantepodden.com;
|
|
|
|
|
return 301 https://$server_name$request_uri;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
# www to bare domain for https requests
|
|
|
|
|
server {
|
|
|
|
|
listen 443 ssl;
|
|
|
|
|
listen [::]:443 ssl;
|
|
|
|
|
http2 on;
|
|
|
|
|
|
|
|
|
|
ssl_certificate /etc/nginx/acme.sh/antijantepodden.com/fullchain.pem;
|
|
|
|
|
ssl_certificate_key /etc/nginx/acme.sh/antijantepodden.com/key.pem;
|
|
|
|
|
ssl_trusted_certificate /etc/nginx/acme.sh/antijantepodden.com/cert.pem;
|
|
|
|
|
|
|
|
|
|
server_name www.antijantepodden.com;
|
|
|
|
|
return 301 $scheme://antijantepodden.com$request_uri;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
server {
|
2025-12-09 20:18:06 -05:00
|
|
|
listen 443 ssl;
|
|
|
|
|
listen [::]:443 ssl;
|
|
|
|
|
http2 on;
|
2025-11-02 18:42:35 -05:00
|
|
|
|
|
|
|
|
ssl_certificate /etc/nginx/acme.sh/antijantepodden.com/fullchain.pem;
|
|
|
|
|
ssl_certificate_key /etc/nginx/acme.sh/antijantepodden.com/key.pem;
|
|
|
|
|
ssl_trusted_certificate /etc/nginx/acme.sh/antijantepodden.com/cert.pem;
|
|
|
|
|
|
|
|
|
|
root /var/www/ajp.fm/jongleur;
|
|
|
|
|
index index.html;
|
|
|
|
|
server_name antijantepodden.com;
|
|
|
|
|
|
|
|
|
|
# redirect 404 not found to the root
|
|
|
|
|
location / {
|
|
|
|
|
error_page 404 = @myownredirect;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
location @myownredirect {
|
|
|
|
|
return 302 /;
|
|
|
|
|
}
|
|
|
|
|
}
|