On first glance I would say that it depends what's in the script - it is possible that apache will redirect the https request to a plain http, thus executing it twice. Please share more info on the OS and the env. in general.
Debian, Apache 2. No proxy.
Why redirect plain, but not html ? I have tried to find this kind of conf, but not so lucky.
And we have mod_jk in use. Is that the problem ? ssl url 1st handled by Tomcat and after that forward to the apache even apache is the front server ?