Fix SSL with server_name and add SSL redirect