[plug] VirtualHosts Problem

Bernard Blackham bernard at blackham.com.au
Sat Jul 24 11:38:23 WST 2004


On Sat, Jul 24, 2004 at 11:34:50AM +0800, Mark Bailey wrote:
> I am trying to point a VirtualHost DocumentRoot to a directory on another
> machine on the network.
> 
> ie. Apache is running on 192.168.1.1. I want the DocumentRoot for one of the
> domains to be on 192.168.1.4.

> I can find no reference showing a DocumentRoot to somewhere other than a
> directory on the host machine. 

That's because it's not possible :)

You could:

(a) mount the directory from the other machine over NFS and then set
the document root accordingly; or

(b) install apache on the other machine and read up on the
documentation for mod_proxy and ProxyPass.

HTH,

Bernard.

-- 
 Bernard Blackham <bernard at blackham dot com dot au>



More information about the plug mailing list