#NEWLINE# def _get_http_vhost( self , ssl_vhost ) : #NEWLINE# #INDENT# 'Find appropriate HTTP vhost for ssl_vhost.' #NEWLINE# candidate_http_vhs = [ ssl_vhost for vhost in self . vhosts if ( not vhost . ssl ) ] #NEWLINE# for http_vh in candidate_http_vhs : #NEWLINE# #INDENT# if http_vh . same_server ( ssl_vhost ) : #NEWLINE# #INDENT# return http_vh #NEWLINE# #UNINDENT# #UNINDENT# for http_vh in candidate_http_vhs : #NEWLINE# #INDENT# if http_vh . same_server ( ssl_vhost , generic = True ) : #NEWLINE# #INDENT# return http_vh #NEWLINE# #UNINDENT# #UNINDENT# return None