Permalink
Browse files

with UseCanonicalName On, apache will populate ['SERVER_NAME'] from t…

…he 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.
  • Loading branch information...
1 parent 8219cc8 commit 93a8e7b4dcb8ad5bb87415ec2f681c4a09bc1b7a @Tyrael Tyrael committed Sep 29, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 mirroring.php
View
1 mirroring.php
@@ -200,6 +200,7 @@ function make_seed()
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

0 comments on commit 93a8e7b

Please sign in to comment.