From owner-freebsd-questions  Wed Apr 12  8:29:30 2000
Delivered-To: freebsd-questions@freebsd.org
Received: from icebox.venux.net (icebox.venux.net [216.120.166.10])
	by hub.freebsd.org (Postfix) with ESMTP
	id 4C8D137BDE7; Wed, 12 Apr 2000 08:29:25 -0700 (PDT)
	(envelope-from mitch@venux.net)
Received: from servbox.venux.net (matrix.venux.net [216.120.166.5])
	by icebox.venux.net (Postfix) with ESMTP
	id 651FD26202; Wed, 12 Apr 2000 11:33:30 -0400 (EDT)
Received: from doot (doot.venux.net [10.0.0.65])
	by servbox.venux.net (Postfix) with SMTP
	id A787E2BD82; Wed, 12 Apr 2000 11:29:56 -0400 (EDT)
Message-ID: <006d01bfa494$4c287c60$4100000a@venux.net>
From: "Mitch Vincent" <mitch@venux.net>
To: "Lester A. Mesa" <netadmin@primex.prontel.net>, <isp@freebsd.org>
Cc: <questions@freebsd.org>
References: <006801bfa4f4$e6201160$38040a0a@prontel.com>
Subject: Re: How many Virtual Hosts?
Date: Wed, 12 Apr 2000 11:32:22 -0400
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 5.00.2615.200
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200
Sender: owner-freebsd-questions@FreeBSD.ORG
Precedence: bulk
X-Loop: FreeBSD.ORG

If you use name based vhosting, there isn't really a limit (beyond memory of
your machine etc).

<quote>
Why can't I run more than <n> virtual hosts?
You are probably running into resource limitations in your operating system.
The most common limitation is the per-process limit on file descriptors,
which is almost always the cause of problems seen when adding virtual hosts.
Apache often does not give an intuitive error message because it is normally
some library routine (such as gethostbyname()) which needs file descriptors
and doesn't complain intelligibly when it can't get them.
<end quote>

So the limit mentioned on Apache's site is more of a limit of the number of
IPs you can bind to any one interface (and the number of per-process file
descriptors you have).. It's not really a limit of Apache itself.

We're approaching that number (255) on one of our Linux boxes, however we
use name based vhosting, so it's only one IP we're dealing with.

- Mitch

----- Original Message -----
From: Lester A. Mesa <netadmin@primex.prontel.net>
To: <isp@freebsd.org>
Cc: <questions@freebsd.org>
Sent: Wednesday, April 12, 2000 11:03 PM
Subject: How many Virtual Hosts?


> According to http://www.apache.org/docs-1.2/misc/FAQ.html#fdlim has anyone
> found a way to run more than 128 to 250 virtual hosts on an Apache Web
> Server 1.3.12 running on FreeBSD 3.4-STABLE?
> Our system is a Rackmount Dual Pentium ]|[ 500, 512MB Ram, u3w SCSI HD.  I
> know that it all depends on how many hits per day the server will be
> getting, though we do not have an approximate amount but I still need to
> prepare the servers to take as many hits as possible and to handle as many
> virtual host as it can.  Any information will be very valuable.
>
> Lester A. Mesa
> lmesa@prontel.com
>
>
>
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-questions" in the body of the message
>



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message