adaptions due to older nginx versions (which don't support websockets)