Extract the bare domain name from a URL (strips protocol, port, trailing slash).
full server URL
domain string
Extract the bare domain name from a URL (strips protocol, port, trailing slash).