Re: [users@httpd] httpd won't start

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

 



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