fix clarivate
[via-proxy] / add-provider.pl
index 2695f00..e04e2d3 100755 (executable)
@@ -18,6 +18,10 @@ print $fh qq{
 
        ServerName ${domain}.p.vbz.ffzg.hr
 
+       RewriteEngine on
+       # fix broken chunging
+       #RewriteRule    /common/javascript/extjs/ext-all.js     https://${domain}/common/javascript/extjs/ext-all.js [R,L]
+
        SSLProxyEngine on
        ProxyAddHeaders Off
        ProxyPass        / https://${domain}/
@@ -28,7 +32,8 @@ print $fh qq{
 };
 
 foreach ( @domains ) {
-       print $fh qq{\tHeader edit* Location "https://$_/" "https://$_.p.vbz.ffzg.hr/"\n};
+       # for maximum compatibility, they should NOT end with /
+       print $fh qq{\tHeader edit* Location "https://$_" "https://$_.p.vbz.ffzg.hr"\n};
 }
 
 print $fh qq{