Re: setting up mirror not in documentroot
[email protected] (Rudy Gevaert)
| Newsgroups | php.mirrors |
|---|---|
| Organization | Universiteit Gent |
| Message-ID | <[email protected]> |
Hello Shaun and Marc, > -----Original Message----- > From: Shaun Ewing [mailto:[email protected]] > You might be able to setup an internal PHP mirror using that method. You > won't be able to setup an official PHP mirror though, as that requires a > virtualhost. Stream Service wrote: > Hello Shaun and Rudy, > > For the record: > A dedicated or virtual private server will also work for a mirror no > virtualhost is needed in this case (depending on the webserver you use and > how it is configured). > > If you use Apache 2 and have root access but just don't understand the > virtualhost options: just ask and I will give you a config that is ready to > be used. Each php file on the mirror has e.e. include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc'; My DocumentRoot points to /var/www. But the mirror is located in /home/rgevaert/WWW/php/ I can't find a way to override the $_SERVER['DOCUMENT_ROOT'] unless I - change the apache config (unfortunately not an option) - change each php page of the mirror, and that will break my rsync update. I can understand that the PHP website is not build for my situation, :), but I would appreciate any help, of you know how I can change this. TIA Rudy -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- Rudy Gevaert [email protected] 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 -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --