Code
# Redirect every request to HTTPS...
server {
listen 80;
listen [::]:80;
server_tokens off;
server_name .new.syntafin.de;
return 301 https://$host$request_uri;
}
# Redirect SSL to primary domain SSL...
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_tokens off;
# FORGE SSL (DO NOT REMOVE!)
ssl_certificate /etc/nginx/ssl/new.syntafin.de/1999601/server.crt;
ssl_certificate_key /etc/nginx/ssl/new.syntafin.de/1999601/server.key;
ssl_protocols TLSv1.2 TLSv1.3;
ssl_ciphers ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-> ssl_prefer_server_ciphers off;
ssl_dhparam /etc/nginx/dhparams.pem;
server_name www.new.syntafin.de;
return 301 https://new.syntafin.de$request_uri;
}
Display More
Und selbst wenn meine Apache Zeiten zum Glück Jahre hinter mir liegen: Finger weg von .htaccess wo es nur geht.