fix autorefresh for https urls with apache proxy in front