On Fri, 2002-03-29 at 11:31, Andrew W. Gaunt wrote:
> 
> I wonder, is there a way to tell apache to use a different document root
> depending on the port? That would be cool way for sorting it out.

You can use the virtual host container to set port, document root, etc.:

<VirtualHost ip.address.of.host.some_domain.com>
    Listen 81
    ServerAdmin [EMAIL PROTECTED]
    DocumentRoot /some/path/accessable/to/www-user
    ServerName host.some_domain.com
    ErrorLog logs/host.some_domain.com-error.log
    CustomLog logs/host.some_domain.com-access.log common
</VirtualHost>

You can use almost any standard apache directive inside of the VH
container that you would use in a standard config.

C-Ya,
Kenny
-- 
----------------------------------------------------------------------------
"Tact is just *not* saying true stuff" -- Cordelia Chase

Kenneth E. Lussier
Sr. Systems Administrator
Zuken, USA
PGP KeyID CB254DD0 
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xCB254DD0



*****************************************************************
To unsubscribe from this list, send mail to [EMAIL PROTECTED]
with the text 'unsubscribe gnhlug' in the message body.
*****************************************************************

Reply via email to