Added posibility to use HTTP/S on server