Undo what you did in 1). Never edit this configuration file. You mix up the webserver that serves the controlpanel and the webserver that serves your websites.
The error in 2 results in editing the file in 1.
After you have undone everything you described above and are able to login again:
Have you created a SSL certificate by filling out the fields on the SSL tab of the website and then select "Create" as action to create the ssl certificate?