reveseproxy/main: fix host flag
reverseproxy: several improvement and fixes to sockjs compability