httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Phillip Hamilton" <phil...@myarchive.biz>
Subject RE: [users@httpd] vhosts
Date Thu, 13 Sep 2007 21:38:01 GMT
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 webmaster@lookatme.com
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 webmaster@lookatme.com
DocumentRoot c:\webs\lookatme
ErrorLog logs/host.lookatme.log
</VirtualHost>

Comprende compadre?


-----Original Message-----
From: Chris Ackford [mailto:chrisackford@gmail.com] 
Sent: Thursday, September 13, 2007 4:23 PM
To: users@httpd.apache.org
Subject: Re: [users@httpd] vhosts

oh, i thought $1 was a variable :/
----- Original Message ----- 
From: "Phillip Hamilton" <phillip@myarchive.biz>
To: <users@httpd.apache.org>
Sent: Thursday, September 13, 2007 9:56 PM
Subject: RE: [users@httpd] 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:chrisackford@gmail.com]
> Sent: Thursday, September 13, 2007 3:47 PM
> To: users@httpd.apache.org
> Subject: Re: [users@httpd] 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" <joshua@slive.ca>
> To: <users@httpd.apache.org>
> Sent: Thursday, September 13, 2007 8:21 PM
> Subject: Re: [users@httpd] vhosts
>
>
>> On 9/13/07, Chris Ackford <chrisackford@gmail.com> 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: 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 <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
>
>
>
> ---------------------------------------------------------------------
> 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
> 


---------------------------------------------------------------------
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



---------------------------------------------------------------------
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