small fixes for ssl nginx proxy