From 93a8e7b4dcb8ad5bb87415ec2f681c4a09bc1b7a Mon Sep 17 00:00:00 2001 From: Ferenc Kovacs Date: Sat, 29 Sep 2012 22:51:06 +0200 Subject: [PATCH] with UseCanonicalName On, apache will populate ['SERVER_NAME'] from the value of ServerName. without that the SERVER_NAME will be different for www.php.net and php.net, hence it can cause problems when we look up the mirror from the mirrors array where the mirrors are indexed by the host. --- mirroring.php | 1 + 1 file changed, 1 insertion(+) diff --git a/mirroring.php b/mirroring.php index a49a98255..ad0237f7e 100644 --- a/mirroring.php +++ b/mirroring.php @@ -200,6 +200,7 @@ europe.rsync.php.net ServerName xx.php.net ServerAlias the.cname.you.set.up.example.com www.xx.php.net ServerAdmin yourname@example.com + UseCanonicalName On # Webroot of PHP mirror site DocumentRoot /www/htdocs/phpweb