httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joe Rice <ric...@water-melon.net>
Subject [users@httpd] Q: subdomains and DocumentRoot question
Date Fri, 11 Apr 2003 20:08:31 GMT


Hi,
   I have a situation where i would like to change the
the DocumentRoot of all mail.* for all the virtual domains to
point to the same place.
I've managed by doing the following:


NameVirtualHost *
UseCanonicalName Off

<VirtualHost mail.host1.com>
    DocumentRoot /var/www/html/squirrelmail
</VirtualHost>

<VirtualHost *>
    ServerAlias *.host1.com
    ServerName host1.com
    DocumentRoot /www/host1.com
</VirtualHost>


Is there a way to do this with out doubling the size if my httpd.conf?
I've tried with mod_rewrite but didn't have any luck.

Any help would be appreciated.

Thanks,
joe

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message