Re: phpweb / mirroring.php

From: Date: Sat, 18 Dec 2004 16:26:09 +0000
Subject: Re: phpweb / mirroring.php
References: 1 2 3  Groups: php.mirrors 
Request: Send a blank email to php-mirrors+get-26890@lists.php.net to get a copy of this message
Don't know if possible, BUT, if you put mirror-info.php IN manual/ and check for its contents, you: a) verify that /manual/ alias doesn't exist (you wouldn't get mirror-info.php if it did) b) still can have all the info mirror-info.php gives you. the only downside I can think of, is if the /manual/ dir is getting overwritten all the time by something else (like the documentation creation script), but I wouldn't think this is the case, because if it was, during to creation of new manuals, mirrors that would sync from the master server would have a partial look of the site... your opinion? :) On Sat, 2004-12-18 at 14:59, Gabor Hojtsy wrote: > Hi Edin, > > > Don't you think that limiting ability for mirroring PHP web site to one web > > server and even one of the sapi's for that server is a bad signal to send? > > > > What sort of problem does virtual() solve that cannot be dealt with in > > other, more portable way? > > We check for the availability of /manual/noalias.txt on the server, > which is used to filter out mirrors having the default Apache manual > alias still switched on. This can only be dealt with virtual() since it > depends on the server handling the request, and not PHP. Alternatively > we could require URL fopen on mirrors and check with that, or we could > send a second test request to the mirrors when checking their status. I > have introduced this virtual() check in june 2003, and noone complained > about it so far, except that a few mirrors have used suphp. > > This is the file we poll to get the current mirror status: > > http://cvs.php.net/phpweb/mirror-info.php > > And this is the script that does the check: > > http://cvs.php.net/php-master-web/scripts/mirror-test > > Now if someone does some magic to not use virtual, but still check for > the local manual availabilty on mirrors, I would probably be positive on > using that. When changing/upgrading servers, it is very common on > mirrors to forget to remove the manual alias, which makes the PHP manual > hidden and unreadable behind the Apache manual... > > Goba -- shimi <shimi@shimi.net>

« previous php.mirrors (#26890) next »