Hi ,
Thx for the answer. But thinking about it some more i discovered another problem....
Since Apache does the front-end  and Apache does the ssl bit, Zope is always accessed without the ssl in the protocol due to the rewrite rule.
See this rewrite rule:

http://localhost:8000/VirtualHostBase/https/%{SERVER_NAME}:443/ProduktionSite/VirtualHostRoot/$1 [L,P]

This means that the host is always contacted by means of http instead of https.
This actually comes from Plone.orgs articel on Apache front-end on Plone.
So is there a way to get hold of the 443 bit in the rwrite rule before or after this is handled by the Virtual Host Monster , and then some url construction?
Setup: Win32, Apache 2.52 with SSL support (OpenSSL), Plone 2.1.1 installer for Win.

rgds Mike

2005/11/18, Michael Reitsma <mreitsma@gmail.com>:

I have a question about installing the Google Analytics script in a Plone site.
Google says you have to place the script in between the head tags so i created a custom version of the template that does this.
Sofar so good, it all works. BUT...
I have an apache frontend and that also has a HTTPS config on it.
When you login you are routed to the https version of the site.
The problem is that when people login they get a security warning that there are parts of th site that are insecure.
This is ofcourse the link to the script from Google that goes over http instead of https.

So the question is :
Can somebody think of a tal instruction or something to make the url to the script protocol dependent ?
I already tested and there is an https version of the script at the exact same location.
here is an exmple of the script:

<script src=" http://www.google-analytics.com/urchin.js" type="text/javascript">
<script type="text/javascript">
_uacct = "UA-XXXX-XX";

with kind regards

Michael Reitsma

met vriendelijke groeten / with kind regards

Michael Reitsma