it finds the nth occurrence of /VirtualHost\ \*:80/ (nth being determined by taking ${#vhost[@]}) and then writes "NameVirtualHost " vhost  above it