You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Joe Barrett <jn...@charter.net> on 2003/04/28 01:16:43 UTC

[users@httpd] Name based virtual hosting

Ok these are the parts of the config I edited to try and make name based
virtual hosts, and with this code apache started, but nothing was
accessible... Can someone please tell me what I did wrong / need to do?

ServerRoot "C:/Program Files/Apache Group/Apache2"

Listen 80

ServerName .68.116.63.71:80

DocumentRoot "C:/Program Files/Apache Group/Apache2"

<Directory "C:/Program Files/Apache Group/Apache2">

NameVirtualHost *

<VirtualHost *>
    DocumentRoot /RopheySite
    ServerName rophey.dyndns.org
</VirtualHost>

<VirtualHost *>
    DocumentRoot /BenSite
    ServerName boredom.dyndns.org
</VirtualHost>


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


Re: [users@httpd] Name based virtual hosting

Posted by Joe Barrett <jn...@charter.net>.
Thanks Jeff, I got it workin now :)


----- Original Message -----
From: "Jeff Cohen" <su...@gej-it.com>
To: <us...@httpd.apache.org>
Sent: Sunday, April 27, 2003 4:39 PM
Subject: RE: [users@httpd] Name based virtual hosting




> -----Original Message-----
> From: Joe Barrett [mailto:jnjbarrett@charter.net]
> Sent: Sunday, April 27, 2003 7:17 PM
> To: Apache
> Subject: [users@httpd] Name based virtual hosting
>
> Ok these are the parts of the config I edited to try and make name based
> virtual hosts, and with this code apache started, but nothing was
> accessible... Can someone please tell me what I did wrong / need to do?

Sure, take a look:

 ServerRoot "C:/Program Files/Apache Group/Apache2"
 Listen 80
 ServerName .68.116.63.71:80
 DocumentRoot "C:/Program Files/Apache Group/Apache2"
 <Directory "C:/Program Files/Apache Group/Apache2">
 NameVirtualHost *
 <VirtualHost *>
 DocumentRoot c:/path/to/RopheySite (if spaces included you must "quote" the
path)
 ServerName rophey.dyndns.org
 </VirtualHost>

 <VirtualHost *>
     DocumentRoot c:/path/to/BenSite (if spaces included you must "quote"
the path)
     ServerName boredom.dyndns.org
 </VirtualHost>

All the best,
Jeff Cohen


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



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


RE: [users@httpd] Name based virtual hosting

Posted by Jeff Cohen <su...@gej-it.com>.

> -----Original Message-----
> From: Joe Barrett [mailto:jnjbarrett@charter.net]
> Sent: Sunday, April 27, 2003 7:17 PM
> To: Apache
> Subject: [users@httpd] Name based virtual hosting
> 
> Ok these are the parts of the config I edited to try and make name based
> virtual hosts, and with this code apache started, but nothing was
> accessible... Can someone please tell me what I did wrong / need to do?

Sure, take a look:
 
 ServerRoot "C:/Program Files/Apache Group/Apache2"
 Listen 80
 ServerName .68.116.63.71:80
 DocumentRoot "C:/Program Files/Apache Group/Apache2"
 <Directory "C:/Program Files/Apache Group/Apache2">
 NameVirtualHost *
 <VirtualHost *>
 DocumentRoot c:/path/to/RopheySite (if spaces included you must "quote" the
path)
 ServerName rophey.dyndns.org
 </VirtualHost>
 
 <VirtualHost *>
     DocumentRoot c:/path/to/BenSite (if spaces included you must "quote"
the path)
     ServerName boredom.dyndns.org
 </VirtualHost>
 
All the best,
Jeff Cohen


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