RE: vhosts

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

 



>From: Chris Ackford [mailto:chrisackford@xxxxxxxxx] 
>Sent: Thursday, September 13, 2007 2:06 PM
>To: users@xxxxxxxxxxxxxxxx
>Subject: Re:  vhosts
>
>im trying to get it so that say i went to
>forum.domain.com it would go to /htdocs/domain.com/forum/ and
>www.domain.com it would go to /htdocs/domain.com/www/ and
>uptime.domain.com it would go to /htdocs/domain.com/uptime/
>
>catch my drift now ..? the only way i can see doing it would 
>mean i would 
>have to make a new config for yeach subdomain, orriginally i 
>was only asking 
>if there was and easyer way
>----- Original Message ----- 
>From: "Phillip Hamilton" <phillip@xxxxxxxxxxxxx>
>To: <users@xxxxxxxxxxxxxxxx>
>Sent: Thursday, September 13, 2007 4:03 PM
>Subject: RE:  vhosts
>
>
>> Then it'd be Apache, by Microsoft. And nobody wants that
>>
>> ;)
>>
>>
>>
>> -----Original Message-----
>> From: Chris Ackford [mailto:chrisackford@xxxxxxxxx]
>> Sent: Thursday, September 13, 2007 9:39 AM
>> To: users@xxxxxxxxxxxxxxxx
>> Subject: Re:  vhosts
>>
>> okay i think i understand that... i think apace should build 
>an app that
>> makes you vhost config for you ... just an idea :D
>> ----- Original Message ----- 
>> From: "Jeff Pang" <pangj@xxxxxx>
>> To: <users@xxxxxxxxxxxxxxxx>
>> Sent: Thursday, September 13, 2007 1:35 PM
>> Subject: Re:  vhosts
>>
>>
>>>
>>> -------- Original-Nachricht --------
>>>> Datum: Thu, 13 Sep 2007 10:25:16 +0100
>>>> Von: "Chris Ackford" <chrisackford@xxxxxxxxx>
>>>> An: users@xxxxxxxxxxxxxxxx
>>>> Betreff:  vhosts
>>>
>>>> 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
>>>
>>> You may take a look at this document,
>>> http://httpd.apache.org/docs/2.0/vhosts/
>>>
>>> -- 
>>> Ist Ihr Browser Vista-kompatibel? Jetzt die neuesten
>>> Browser-Versionen downloaden: http://www.gmx.net/de/go/browser
>>>
>>> 

I didn't catch this whole thread so if this has already been suggested
the I apologize.

If I understand what you are asking, this is how I currently do it.  

Add the virtual host definitions to httpd.conf as in:

<VirtualHost *:80>
  ServerName forum.domain.com
  ServerAdmin root@localhost
  DocumentRoot /usr/local/apache/htdocs/forum
  <Directory /usr/local/apache/htdocs/forum>
  </Directory>
</VirtualHost>
<VirtualHost *:80>
  ServerName www.domain.com
  ServerAdmin root@localhost
  DocumentRoot /usr/local/apache/htdocs/domain
  <Directory /usr/local//apache/htdocs/domain>
  </Directory>
</VirtualHost>

And make sure your dns is seeded accordingly with the 2 virtual hosts
pointing to the same ip.  The other way is to have 1 unique ips on the
same box and change the <VirtualHost *:80> entry to reflect the ip and
not *.  HTH

Regards, Marshall

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