Re: question about rr...
| From: | Sebastian Zavadschi | Date: | Tue, 05 Feb 2013 12:23:15 +0000 |
| Subject: | Re: question about rr... | ||
| References: | 1 2 3 4 5 | Groups: | php.mirrors |
| Request: | Send a blank email to php-mirrors+get-39709@lists.php.net to get a copy of this message | ||
On Tue, Feb 5, 2013 at 1:56 PM, Ferenc Kovacs <tyra3l@gmail.com> wrote:
>
>
>
> On Tue, Feb 5, 2013 at 12:14 PM, Sebastian Zavadschi <sz@box.md> wrote:
>
>> I've mentioned before, this can be easily sorted out if you add a rewrite
>> rule to your Web Server config. Below is my example for Nginx (should be
>> easy in Apache too):
>
>
>> if ($host != 'md1.php.net' ) {
>> rewrite ^/(.*)$ http://md1.php.net/$1 permanent;
>> }
>> So, you may adopt this solution and publish it to Mirroring The PHP
>> Website<http://php.net/mirroring.php>
>> guide.
>>
>
> This would redirect the traffic from the load balanced domain to the
> mirror happened to serve that particular request.
> I don't think that is our intention.
>
Understood, but in some particular cases it's better to take on you the
visitor who reached your server.
Just imagine you have a broken mirror but for some reason still active in
DNS, you may get weird results.
Round-robin still distributes the clients across servers, once you hit a
working mirror, you should stay there, but, this is my personal opinion,
maybe I don't think globally :)
>
>> By the way, just noticed that md.php.net DNS record is missing, just
>> md1.php.net has the correct CNAME. Any reasons for this?
>>
>
> It was removed from the round-robin rotation, because it wasn't able to
> serve out the mirror-info.php when requested via the md.php.net hostname
> I guess that was caused by your rewrite rule.
> Unfortunately the notification about the removal didn't reached this list,
> which was my fault. :(
> If you could remove your redirect rule for now, and wait for an official
> solution from Dan, I can put your mirror back into the rotation for
> md.php.net.
>
>
Removed, should be fine now.
> --
> Ferenc Kovács
> @Tyr43l - http://tyrael.hu
>
--
*Sebastian Zavadschi*
+1 917 310 1719 (szavadschi)
+373 6999 9914, +373 7987 9005