switch things to support apache proxy