If you want ALL of them to go to one directory just use * as in *.company.com
You can also use ServerAlias and only point dom.customer.com and hey.customer.com to one dir, then point all other *.customer.com domains to another place. For instance Namevirtualhost 109.12.133.15:80 <VirtualHost 109.12.133.15:80> Servername hey.lookatme.com ServerAlias hye.lookatme.com // both hey and hye will be snagged! ServerAdmin [EMAIL PROTECTED] DocumentRoot c:\webs\lookatme\hey <Directory c:\webs\lookatme\hey> AllowOverride Authconfig AllowOverride All Options +Includes +ExecCGI +Indexes +MultiViews +FollowSymLinks Allow from all </Directory> ErrorLog logs/host.lookatme.log </VirtualHost> Then below that, catch all the www's: <VirtualHost 109.12.133.15:80> Servername www.lookatme.com ServerAdmin [EMAIL PROTECTED] DocumentRoot c:\webs\lookatme ErrorLog logs/host.lookatme.log </VirtualHost> Comprende compadre? -----Original Message----- From: Chris Ackford [mailto:[EMAIL PROTECTED] Sent: Thursday, September 13, 2007 4:23 PM To: users@httpd.apache.org Subject: Re: [EMAIL PROTECTED] vhosts oh, i thought $1 was a variable :/ ----- Original Message ----- From: "Phillip Hamilton" <[EMAIL PROTECTED]> To: <users@httpd.apache.org> Sent: Thursday, September 13, 2007 9:56 PM Subject: RE: [EMAIL PROTECTED] vhosts > Absolutely. Just remember to enable the vhosts conf file in your > httpd.conf > and also, you'll need to do that for ALL of your domains, not just the new > one. > > Using Vhosts is an all-in thing. You need to setup $1.customer-1.com, > www.customer.com, etc. > > Each under a different <virtualhost> tag, if you want them pointing to > different directories. > > -----Original Message----- > From: Chris Ackford [mailto:[EMAIL PROTECTED] > Sent: Thursday, September 13, 2007 3:47 PM > To: users@httpd.apache.org > Subject: Re: [EMAIL PROTECTED] vhosts > > so could i do something like this ? > > <VirtualHost *:80> > ServerName $1.customer-1.com > DocumentRoot /www/hosts/domain.com/$1/ > </VirtualHost> > > ----- Original Message ----- > From: "Joshua Slive" <[EMAIL PROTECTED]> > To: <users@httpd.apache.org> > Sent: Thursday, September 13, 2007 8:21 PM > Subject: Re: [EMAIL PROTECTED] vhosts > > >> On 9/13/07, Chris Ackford <[EMAIL PROTECTED]> wrote: >> >>> okay ive tryed myself but i cant get it to work ... i would like >>> *.domain.com to go to the retropective folder i cant work out how :/ >>> thanks >>> for your help :) >> >> Gee, people aren't being very helpful to you here. There is a very >> concrete answer to this. It can be done in two different ways in >> apache, and they are both described in detail here: >> http://httpd.apache.org/docs/2.2/vhosts/mass.html >> >> Joshua. >> >> --------------------------------------------------------------------- >> 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: [EMAIL PROTECTED] >> " from the digest: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> > > > --------------------------------------------------------------------- > 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: [EMAIL PROTECTED] > " from the digest: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > > --------------------------------------------------------------------- > 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: [EMAIL PROTECTED] > " from the digest: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > --------------------------------------------------------------------- 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: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- 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: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]