fix to the unofficial mirror problem

From: Date: Thu, 14 Feb 2013 10:49:17 +0000
Subject: fix to the unofficial mirror problem
Groups: php.mirrors 
Request: Send a blank email to php-mirrors+get-39737@lists.php.net to get a copy of this message
Hi, I've updated http://php.net/mirroring.php and the unofficial mirror should be resolved when following the apache configuration there. The important apache configuration lines are the following: ServerName ccx.php.net ServerAlias cc.php.net www.ccx.php.net www.cc.php.net the.cname.you.set.up.example.com UseCanonicalName On If you can't use this solution (for example your mirror doesn't hosted by apache but something else) the important thing is to make sure that $_SERVER["SERVER_NAME"] always set to ccx.php.net even when you receive the cc.php.net as the Host header. You can achieve this using internal redirects for example (external redirects can/will be considered as broken configuration by our mirror-test script and that will cause removal/disabling of the mirror) or you can use the auto_prepend_file<http://www.php.net/manual/en/ini.core.php#ini.auto-prepend-file>feature to include a php script before every request which sets the $_SERVER['SERVER_NAME'] to the desired value. If you need further assistance or you spot an mistake in the suggested fix please drop an email to the list and I will try to assist you. -- Ferenc Kovács @Tyr43l - http://tyrael.hu

« previous php.mirrors (#39737) next »