com web/php: with UseCanonicalName On, apache will populate ['SERVER_NAME'] from the value of ServerNam e. without that the SERVER_NAME will be diffe
rent for www.php.net and php.net, hence it can cause problems when we look up the mirro r from the mirrors array where the mirrors are indexed by
the host.: mirroring.php
| From: | Ferenc Kovacs | Date: | Sat, 29 Sep 2012 20:51:06 +0000 |
| Subject: | com web/php: with UseCanonicalName On, apache will populate ['SERVER_NAME'] from the value of ServerNam e. without that the SERVER_NAME will be diffe rent for www.php.net and php.net, hence it can cause problems when we look up the mirro r from the mirrors array where the mirrors are indexed by the host.: mirroring.php |
||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-14784@lists.php.net to get a copy of this message | ||
Commit: 93a8e7b4dcb8ad5bb87415ec2f681c4a09bc1b7a
Author: Ferenc Kovacs <tyra3l@gmail.com> Sat, 29 Sep 2012 22:51:06 +0200
Parents: 8219cc808a0f47bac1907e4ebdaac17f8ffa6657
Branches: master
Link: http://git.php.net/?p=web/php.git;a=commitdiff;h=93a8e7b4dcb8ad5bb87415ec2f681c4a09bc1b7a
Log:
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.
Changed paths:
M mirroring.php
Diff:
diff --git a/mirroring.php b/mirroring.php
index a49a982..ad0237f 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