Take a look at http://httpd.apache.org/docs/2.1/vhosts.  Although this is
specific to Apache 2.1+, there are similar pages for each major version. 
Find yours.

The lines you quoted originally actually had a couple of issues. 
Specifically, in order to do name based virtual hosting you need this
directive to start;

NameVirtualHost 12.34.56.78:80 (or whatever IP:port you are using)

In each of VirtualHost sections you need to specify an IP, or say
_default_:* as the argument to VirtualHost, like this;

<VirtualHost _default_:*>
  DocumentRoot /www/docs/host.foo.com
  ServerName host.foo.com
</VirtualHost>

Also, notice the ServerName directive.  It's required for name based
virtual hosts.

Hope this helps.

> I read through the entire /etc/httpd/conf /httpd.conf and found no place
> to put the IP in.  In the "windows"  version,  in the http server, all
> the Virtual Hosts are name based.  I cannot add an IP without changing
> them to IP based and that won't work (I don't think) since they would
> all have the same IP.



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