ServerName www.palgrave.com.p.vbz.ffzg.hr
-DumpIOInput On
-DumpIOOutput On
+#DumpIOInput On
+#DumpIOOutput On
#DumpIOLogLevel debug
-LogLevel debug
+#LogLevel debug
ProxyAddHeaders Off
CustomLog /var/log/apache2/access-p.vbz.ffzg.hr.log vhost_combined
</VirtualHost>
+<VirtualHost *:443>
+ Include /srv/via-proxy/ssl.conf
+
+ ServerName jcr.incites.thomsonreuters.com.p.vbz.ffzg.hr
+
+ SSLProxyEngine on
+ ProxyAddHeaders Off
+ ProxyPass / https://jcr.incites.thomsonreuters.com/
+ ProxyPassReverse / https://jcr.incites.thomsonreuters.com/
+
+ Header edit* Set-Cookie "(.*)(?i:; *domain=)([^;]+)(.*)" "$1 ; domain=$2.p.vbz.ffzg.hr $3"
+ Header edit* Set-Cookie "(.*)(?i:; *secure)" "$1"
+
+ Header edit* Location "(https://.*.incites.thomsonreuters.com)/?(.*)" "$1.p.vbz.ffzg.hr/$2"
+
+
+ CustomLog /var/log/apache2/access-p.vbz.ffzg.hr.log vhost_combined
+</VirtualHost>
+<VirtualHost *:443>
+ Include /srv/via-proxy/ssl.conf
+
+ ServerName login.incites.thomsonreuters.com.p.vbz.ffzg.hr
+
+ SSLProxyEngine on
+ ProxyAddHeaders Off
+ ProxyPass / https://login.incites.thomsonreuters.com/
+ ProxyPassReverse / https://login.incites.thomsonreuters.com/
+
+ Header edit* Set-Cookie "(.*)(?i:; *domain=)([^;]+)(.*)" "$1 ; domain=$2.p.vbz.ffzg.hr $3"
+ Header edit* Set-Cookie "(.*)(?i:; *secure)" "$1"
+
+ # they really return http Location header even if everything else was
+ # behind https up to that point, AND https works
+ Header edit* Location "https?://(.*.incites.thomsonreuters.com)/?(.*)" "https://$1.p.vbz.ffzg.hr/$2"
+
+ CustomLog /var/log/apache2/access-p.vbz.ffzg.hr.log vhost_combined
+</VirtualHost>
+
+
+
+
+
NameVirtualHost *:443
<VirtualHost *:443>