Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 42448 invoked from network); 15 Jun 2004 21:57:49 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 15 Jun 2004 21:57:49 -0000 Received: (qmail 46604 invoked by uid 500); 15 Jun 2004 21:57:26 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 46496 invoked by uid 500); 15 Jun 2004 21:57:24 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 46046 invoked by uid 99); 15 Jun 2004 21:57:17 -0000 Received: from [206.46.164.53] (HELO oe-im2.bizmailsrvcs.net) (206.46.164.53) by apache.org (qpsmtpd/0.27.1) with ESMTP; Tue, 15 Jun 2004 14:57:17 -0700 Received: from mm-ismta4.bizmailsrvcs.net ([192.168.133.29]) by oe-im2.bizmailsrvcs.net (InterMail vM.5.01.06.05 201-253-122-130-105-20030824) with ESMTP id <20040615215645.LMHA24679.oe-im2.bizmailsrvcs.net@mm-ismta4.bizmailsrvcs.net> for ; Tue, 15 Jun 2004 16:56:45 -0500 Received: from heli ([66.15.59.87]) by mm-ismta4.bizmailsrvcs.net (InterMail vM.5.01.06.05 201-253-122-130-105-20030824) with ESMTP id <20040615215645.JQOV1757.mm-ismta4.bizmailsrvcs.net@heli> for ; Tue, 15 Jun 2004 16:56:45 -0500 Reply-To: From: "Michael" To: Date: Tue, 15 Jun 2004 14:56:49 -0700 Organization: XShellR8 Message-ID: <000501c45323$a901e150$573b0f42@heli> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.6626 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 In-Reply-To: Importance: Normal X-Virus-Checked: Checked Subject: RE: [users@httpd] Wildcards in Name-based Virtual Hosts X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N That's correct, this will not work and you need to specify IP's in it's place. So for example: Listen xxx.xx.xx.x1:80 Listen xxx.xx.xx.x2:80 Listen xxx.xx.xx.x3:80 NameVirtualHost xxx.xx.xx.x1:80 NameVirtualHost xxx.xx.xx.x2:80 NameVirtualHost xxx.xx.xx.x3:80 ServerAdmin webmaster@mydomain.com DocumentRoot /usr/local/www/MyWeb1 ServerName www.mydomain1.com ErrorLog /var/log/http-mydomain1-error.log LogLevel warn LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined LogFormat "%h %l %u %t \"%r\" %>s %b" common LogFormat "%{Referer}i -> %U" referer LogFormat "%{User-agent}i" agent CustomLog /var/log/http-mydomain1-access.log combined ServerPath /usr/local AccessFileName .htaccess ServerAlias web ServerAdmin webmaster@mydomain.com DocumentRoot /usr/local/www/MyWeb2 ServerName www.mydomain2.com ErrorLog /var/log/http-mydomain2-error.log LogLevel warn LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined LogFormat "%h %l %u %t \"%r\" %>s %b" common LogFormat "%{Referer}i -> %U" referer LogFormat "%{User-agent}i" agent CustomLog /var/log/http-mydomain2-access.log combined ServerPath /usr/local AccessFileName .htaccess ServerAlias surf ServerAdmin webmaster@mydomain.com DocumentRoot /usr/local/www/MyWeb3 ServerName www.mydomain3.com ErrorLog /var/log/http-mydomain3-error.log LogLevel warn LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined LogFormat "%h %l %u %t \"%r\" %>s %b" common LogFormat "%{Referer}i -> %U" referer LogFormat "%{User-agent}i" agent CustomLog /var/log/http-mydomain3-access.log combined ServerPath /usr/local AccessFileName .htaccess ServerAlias host Obviously in this scenario you need static IP's Hope this helps, Michael -----Original Message----- From: Joshua Slive [mailto:joshua@slive.ca] Sent: Tuesday, June 15, 2004 2:35 PM To: 'users@httpd.apache.org' Subject: Re: [users@httpd] Wildcards in Name-based Virtual Hosts On Tue, 15 Jun 2004, James Tusini wrote: > I thought you could put a wildcard in the directive like this: > > > - > - > ServerName *.domain.com > - > - > > > but then www.domain.com will go to the default server, so I have to use a > ServerAlias instead > > Is this correct behaviour or should the wildcard work? No, the wildcard should not work. What would a wildcard ServerName accomplish that you can't do with a ServerAlias? Perhaps you are looking for the "UseCanonicalName off" configuration? Joshua. --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See 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 --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See 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