'localhost' can be a problem sometimes. If it is, I use '127.0.0.1' instead. But the registered domain name is the preferred method rather than either of these. So, cranstonit, you can use your domain name instead of 'yourhost' in user19752's fine example.
Also the SSL means the 'https' should be used not the 'http'.