httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "McDougall, Marshall (FSH)" <Marshall.McDoug...@gov.mb.ca>
Subject RE: [users@httpd] vhosts
Date Thu, 13 Sep 2007 20:37:49 GMT
 

>-----Original Message-----
>From: McDougall, Marshall (FSH) 
>Sent: Thursday, September 13, 2007 3:32 PM
>To: users@httpd.apache.org
>Subject: RE: [users@httpd] vhosts
>
>>From: Chris Ackford [mailto:chrisackford@gmail.com] 
>>Sent: Thursday, September 13, 2007 2:06 PM
>>To: users@httpd.apache.org
>>Subject: Re: [users@httpd] 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@myarchive.biz>
>>To: <users@httpd.apache.org>
>>Sent: Thursday, September 13, 2007 4:03 PM
>>Subject: RE: [users@httpd] vhosts
>>
>>
>>> Then it'd be Apache, by Microsoft. And nobody wants that
>>>
>>> ;)
>>>
>>>
>>>
>>> -----Original Message-----
>>> From: Chris Ackford [mailto:chrisackford@gmail.com]
>>> Sent: Thursday, September 13, 2007 9:39 AM
>>> To: users@httpd.apache.org
>>> Subject: Re: [users@httpd] 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@gmx.de>
>>> To: <users@httpd.apache.org>
>>> Sent: Thursday, September 13, 2007 1:35 PM
>>> Subject: Re: [users@httpd] vhosts
>>>
>>>
>>>>
>>>> -------- Original-Nachricht --------
>>>>> Datum: Thu, 13 Sep 2007 10:25:16 +0100
>>>>> Von: "Chris Ackford" <chrisackford@gmail.com>
>>>>> An: users@httpd.apache.org
>>>>> Betreff: [users@httpd] 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
>


Sorry, make that 2 unique ip's, not one.

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