100% code coverage
Updated to use hostname instead of server vars