Re: setting up mirror not in documentroot

From: Date: Fri, 30 Jan 2009 11:00:58 +0000
Subject: Re: setting up mirror not in documentroot
References: 1 2 3 4 5  Groups: php.mirrors 
Request: Send a blank email to php-mirrors+get-37013@lists.php.net to get a copy of this message
Stream Service wrote:
Hello Rudy, You could prepend a PHP-file. In this file you can override the $_SERVER['DOCUMENT_ROOT']. The file could look like this: <?php $_SERVER['DOCUMENT_ROOT'] = "/home/rgevaert/WWW/php"; ?> After this $_SERVER['DOCUMENT_ROOT'] would point to /home/rgevaert/WWW/php. With kind regards,
Yes that is correct. The problem here is that I would then edit the php files. And break my rsync setup :( The server is behind a link of 8Mbit/s for a whole university. Meaning more than 2000 pc are constantly using it. I would of course do the rsync at night, but each bit I spare is good. I think the only solution would be a change upstream of the php website. Thanks -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- Rudy Gevaert Rudy.Gevaert@UGent.be tel:+32 9 264 4734 Directie ICT, afd. Infrastructuur ICT Department, Infrastructure office Groep Systemen Systems group Universiteit Gent Ghent University Krijgslaan 281, gebouw S9, 9000 Gent, Belgie www.UGent.be -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --

« previous php.mirrors (#37013) next »