Resolves #27. Use SSL only when ssl is defined (also vhost ports)