RE: setting up mirror not in documentroot
| From: | Stream Service | Date: | Fri, 30 Jan 2009 11:29:18 +0000 |
| Subject: | RE: setting up mirror not in documentroot | ||
| References: | 1 2 3 4 5 6 | Groups: | php.mirrors |
| Request: | Send a blank email to php-mirrors+get-37014@lists.php.net to get a copy of this message | ||
-----Original Message-----
From: Rudy Gevaert [mailto:Rudy.Gevaert@UGent.be]
Sent: vrijdag 30 januari 2009 12:01
To: Stream Service
Cc: mirrors@php.net
Subject: Re: setting up mirror not in documentroot
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
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Hello Rudy,
There is a php.ini prepend file option, maybe this also works with an
.htaccess, so you won't need to change other files (just 1 new php-file and
1 .htaccess).
With kind regards,
Mark Scholten