blob: 574c843b814b94dac85edf7d2062270ba1170779 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
# substitute, proxy, headers, ssl, proxy_http mods need enable: a2enmod
<VirtualHost *:27443>
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|' width=480 height=336 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.src=\"/i"
</VirtualHost>
<VirtualHost *:2780>
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|' width=480 height=336 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.src=\"/i"
</VirtualHost>
|