changes aimed at enabling multiple port apache. Also remove rewrite rules that were messing up some situations.