RE: vhosts

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx] 
Sent: Thursday, September 13, 2007 3:47 PM
To: users@xxxxxxxxxxxxxxxx
Subject: Re:  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@xxxxxxxx>
To: <users@xxxxxxxxxxxxxxxx>
Sent: Thursday, September 13, 2007 8:21 PM
Subject: Re:  vhosts


> On 9/13/07, Chris Ackford <chrisackford@xxxxxxxxx> 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@xxxxxxxxxxxxxxxx
>   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
> For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx
> 


---------------------------------------------------------------------
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@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



---------------------------------------------------------------------
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@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux