made changes for nginx move

need to create function with virtual-host config and modify it for  local use.