server { listen %ip%:%proxy_ssl_port% http2 ssl; listen [::]:%proxy_ssl_port% http2 ssl; server_name %domain_idn% %alias_idn%; ssl_certificate %ssl_pem%; ssl_certificate_key %ssl_key%; error_log /var/log/%web_system%/domains/%domain%.error.log error; location / { proxy_set_header Host %domain%; proxy_set_header X-Forwarded-For $remote_addr; # replace the static resource URIs to load from the CDN sub_filter_once off; sub_filter '