>From: Chris Ackford [mailto:[EMAIL PROTECTED] 
>Sent: Thursday, September 13, 2007 2:06 PM
>To: users@httpd.apache.org
>Subject: Re: [EMAIL PROTECTED] 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" <[EMAIL PROTECTED]>
>To: <users@httpd.apache.org>
>Sent: Thursday, September 13, 2007 4:03 PM
>Subject: RE: [EMAIL PROTECTED] vhosts
>
>
>> Then it'd be Apache, by Microsoft. And nobody wants that
>>
>> ;)
>>
>>
>>
>> -----Original Message-----
>> From: Chris Ackford [mailto:[EMAIL PROTECTED]
>> Sent: Thursday, September 13, 2007 9:39 AM
>> To: users@httpd.apache.org
>> Subject: Re: [EMAIL PROTECTED] 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" <[EMAIL PROTECTED]>
>> To: <users@httpd.apache.org>
>> Sent: Thursday, September 13, 2007 1:35 PM
>> Subject: Re: [EMAIL PROTECTED] vhosts
>>
>>
>>>
>>> -------- Original-Nachricht --------
>>>> Datum: Thu, 13 Sep 2007 10:25:16 +0100
>>>> Von: "Chris Ackford" <[EMAIL PROTECTED]>
>>>> An: users@httpd.apache.org
>>>> Betreff: [EMAIL PROTECTED] 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 [EMAIL PROTECTED]
  DocumentRoot /usr/local/apache/htdocs/forum
  <Directory /usr/local/apache/htdocs/forum>
  </Directory>
</VirtualHost>
<VirtualHost *:80>
  ServerName www.domain.com
  ServerAdmin [EMAIL PROTECTED]
  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: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to