I've had to set up my server to have different sites point to the same file system several times and have always had to run all over the web to find the instructions in various locations, so I thought I'd put it all in one place so at least I have access to the information for next time. My sites are hosted using MediaTemple's Dedicated Virtual (dv) server, version 4.0.
First thing to do is add a new subscription (i.e. domain) which would, if left alone, simply behave like a normal server.
Connect via SSH to your server and find the conf directory of the domain you just set up (e.g. www.mynewserver.com). For this example, you can simply type the following command, replacing mynewserver.com with your domain name:
Next create the file vhost.conf using the following command:
Once you're in the vi editor, enter the following:
<Directory /var/www/vhosts/servertouse.com/httpdocs >
php_admin_flag engine on
php_admin_flag safe_mode off
php_admin_value open_basedir "/var/www/vhosts/servertouse.com/httpdocs:/tmp"
Obviously replace servertouse.com with the correct domain/path to the file system you want your new server to reference. I added some additional php paramenters as well. If you are going to need SSL be sure to create a vhost_ssl.conf file as well with the same content. The easiest way to create the vhost_ssl file is to do the following sequence:
<esc> :w <enter> :w vhost_ssl.conf <enter> :q <enter>
Once you are out of the vi editor, you need to reconfigure your web server to find and use your new vhost files. Then restart your web server:
/usr/local/psa/admin/sbin/httpdmng --reconfigure-domain mynewserver.com
That's it! Your new server should now reference your existing file system.