Re: vhosts

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

 



i think so :)
----- Original Message ----- From: "Phillip Hamilton" <phillip@xxxxxxxxxxxxx>
To: <users@xxxxxxxxxxxxxxxx>
Sent: Thursday, September 13, 2007 10:38 PM
Subject: RE:  vhosts


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@xxxxxxxxxxxx
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@xxxxxxxxxxxx
DocumentRoot c:\webs\lookatme
ErrorLog logs/host.lookatme.log
</VirtualHost>

Comprende compadre?


-----Original Message-----
From: Chris Ackford [mailto:chrisackford@xxxxxxxxx]
Sent: Thursday, September 13, 2007 4:23 PM
To: users@xxxxxxxxxxxxxxxx
Subject: Re:  vhosts

oh, i thought $1 was a variable :/
----- Original Message ----- From: "Phillip Hamilton" <phillip@xxxxxxxxxxxxx>
To: <users@xxxxxxxxxxxxxxxx>
Sent: Thursday, September 13, 2007 9:56 PM
Subject: RE:  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@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



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