Added more comments and simplified the checking for a uri protocol
Added more comments and simplified the checking for a uri protocol

gileshinchcliff/docker-nginx-proxy,UKHomeOffice/docker-ngx-openresty,UKHomeOffice/docker-nginx-proxy