[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

RE: Apache vhosts dinamically alias



Hmm...  This might work...  In your virtualhost declaration in httpd.conf
place the Alias definition such as "Alias /stats/
/var/stats/virtualhosta.com"

For example:
<VirtualHost www.virtualhosta.com>
ServerAdmin webmaster@virtualhosta.com
DocumentRoot /var/WWW
ServerName www.virtualhosta.com
Alias /stats/ /var/stats/virtualhosta.com
</VirtualHost>

You can place any httpd.conf, srm.conf, access.conf etc. statement inside a
virtualhost declaration.  There might be a faster to go about this, such as
if you had a lot of virtual hosts, but this should work.

Brian Jones
Network Specialist
Northroute Networks Ltd.
(807) 346-4266
bjones@northroute.net
http://www.northroute.net

-----Original Message-----
From: teixi@island.6tems.com [mailto:teixi@island.6tems.com]On Behalf Of
Jaume Teixi
Sent: August 30, 2000 2:04 PM
To: debian-isp@lists.debian.org; Debian User
Subject: Apache vhosts dinamically alias
Importance: High

I have each virtual host under /var/www
I want to enable a virtualhostA.com/stats URL that points to
/var/stats/virtualhostA.com
same for virtualhostB, etc

I've tried

Alias /%1/stats    /var/stasts/%1 with no success

any Ideas?

thanks,
jaume.



--
To UNSUBSCRIBE, email to debian-isp-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact
listmaster@lists.debian.org



Reply to: