|
Posted by JDS on 11/04/05 18:06
Hi all. I don't know if this is possible, and if it is, whether it needs
to be done within Apache configuration or PHP configuration, but here goes:
I am migrating my web server to another machine. In fact, it is two
machines -- one for the web server itself, and one as a data server for
user home directories and MySQL.
The users' home dirs will be mounted on the web server as NFS mounts.
Now, the original, current, configuration has user home directories in
/home/*. There are a number of PHP scripts that refer to this directory
by an absolute path, for example, with lines like:
<? include("/home/webmaster/public_html/include/thing.inc"); ?>
However, the NFS mounted home directories are mounted on /webusers. This
is because I was reserving /home for actual local user directories.
Is there a way I can map calls to "/home" to "/webusers" without actually
changing all of the places that such absolute-path calls exist?
Note that a symbolic link from /home->/webusers wil not work because /home
is a real, existing, local directory.
System details:
old server: Red Hat Linux 9, Apache 1.3.x, PHP 4.3.x, MySQL 3.23.x
new server(s):
web: RHEL 4, Apache 2.0.x, PHP 4.3.x
data: RHEL 4, MySQL 4.1.x
I can post any more details as requested, of course.
Thanks!
--
JDS | jeffrey@example.invalid
| http://www.newtnotes.com
DJMBS | http://newtnotes.com/doctor-jeff-master-brainsurgeon/
[Back to original message]
|