# substitute, proxy, headers, ssl, proxy_http mods need enable: a2enmod
SSLEngine On
SSLCertificateFile /etc/ssl/certifikati/fullchain.pem
SSLCertificateKeyFile /etc/ssl/certifikati/privkey.pem
SSLProxyEngine On
SSLProxyCheckPeerCN Off
SSLProxyCheckPeerName Off
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
RequestHeader unset Accept-Encoding
ProxyPreserveHost Off
ProxyPass "/" "https://teletext.rtvslo.si:443/"
ProxyPassReverse "/" "https://teletext.rtvslo.si:443/"
AddOutputFilterByType SUBSTITUTE text/html
Substitute "s|teletext.rtvslo.si|teletekst.xn--jha.ga|i"
Substitute "s| usemap|' src='data:image/svg+xml,%3Csvg xmlns=\"http://www.w3.org/2000/svg\" width=\"480px\" height=\"336px\" %3E%3C/svg%3E' usemap|i"
Substitute "s/id=\"mainDisplay\" src=\"/id=\"mainDisplay\" onload='this.onload=undefined;this.src=\"/i"
SSLProxyEngine On
SSLProxyCheckPeerCN Off
SSLProxyCheckPeerName Off
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
RequestHeader unset Accept-Encoding
ProxyPreserveHost Off
ProxyPass "/" "https://teletext.rtvslo.si:443/"
ProxyPassReverse "/" "https://teletext.rtvslo.si:443/"
AddOutputFilterByType SUBSTITUTE text/html
Substitute "s|teletext.rtvslo.si|teletekst.xn--jha.ga|i"
Substitute "s| usemap|' src='data:image/svg+xml,%3Csvg xmlns=\"http://www.w3.org/2000/svg\" width=\"480px\" height=\"336px\" %3E%3C/svg%3E' usemap|i"
Substitute "s/id=\"mainDisplay\" src=\"/id=\"mainDisplay\" onload='this.onload=undefined;this.src=\"/i"