httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Glen Lee Edwards <GLEdwa...@uswest.net>
Subject <VirtualHost> and VirtualDocumentRoot
Date Tue, 20 Jun 2000 18:35:40 GMT
I'd like to create a generic <VirtualHost></VirtualHost> tag to use
VirtualDocumentRoot in. Is there a way to wildcard domain names within a
<VirtualHost> tag (using name based virtual hosting)?

<VirtualHost *:80>
    ServerName www.*.net
    ServerAlias www.*.org www.*.com
    VirtualDocumentRoot     /home/httpd/html/%-2.0.%-1.0
</VirtualHost>

<VirtualHost *:80>
    ServerName *.net
    ServerAlias *.org *.com
    VirtualDocumentRoot     /home/httpd/html/%-2.0.%-1.0
</VirtualHost>

<VirtualHost *:80>
    ServerName *.*.net
    ServerAlias *.*.org *.*.com
    VirtualDocumentRoot     /home/httpd/html/%-3.0.%-2.0.%-1.0
</VirtualHost>
 
Glen


Mime
View raw message