Nginx: Convert subdir alias name properly when used as server_name in redirection.
Fix the warnings and scary errors on site migrate (subdir).

Undefined offset: 1 Subdir.php:46
Undefined offset: 1 Subdir.php:46
Undefined variable: parent_site SubdirVhost.php:61
unlink(/var/aegir/config/server_master/nginx/vhost.d/): Is a directory FileSystem.php:122
Undefined variable: parent_site SubdirVhost.php:61
Nginx: Fix aliases in redirects on the fly.
Fix the check for parent site existence - we should look for drush alias file and not a vhost (which can be dummy subdir vhost).

Running the parent site re-verify more than once (which would happen when there are two or more aliases) via backend while updating subdir site configuration results with semi-disaster, since it writes parent site db credentials into subdir site config. Not nice. But when auto-running this re-verify via frontend with hosting-task, it results with total disaster - it destroys hostmaster database! The workaround is to use a counter in the aliases loop, to make sure that we run parent site re-verify to update its vhost and add include line for sites in subdirs, if they exist, only once. By the way, DigitalOcean backups s*cks!
Nginx: Use text/xml mime type for .xml URLs to restore defaults.
Issue #2020089 by ergonlogic - Allow example.com and example.com/foo domains (improved to fix a few dangerous errors) plus comments.
Nginx: Fix aliases in redirects on the fly.
Fix the check for parent site existence - we should look for drush alias file and not a vhost (which can be dummy subdir vhost).

Running the parent site re-verify more than once (which would happen when there are two or more aliases) via backend while updating subdir site configuration results with semi-disaster, since it writes parent site db credentials into subdir site config. Not nice. But when auto-running this re-verify via frontend with hosting-task, it results with total disaster - it destroys hostmaster database! The workaround is to use a counter in the aliases loop, to make sure that we run parent site re-verify to update its vhost and add include line for sites in subdirs, if they exist, only once. By the way, DigitalOcean backups s*cks!
Nginx: Use text/xml mime type for .xml URLs to restore defaults.
Issue #2020089 by ergonlogic - Allow example.com and example.com/foo domains (improved to fix a few dangerous errors) plus comments.
Merge branch '6.x-2.x' of git.drupal.org:project/provision into 6.x-2.x-stock-revert