From owner-freebsd-isp Tue Sep 12 16:40:46 2000 Delivered-To: freebsd-isp@freebsd.org Received: from wormhole.bluestar.net (wormhole.bluestar.net [208.53.1.61]) by hub.freebsd.org (Postfix) with ESMTP id 47D2237B423 for ; Tue, 12 Sep 2000 16:40:43 -0700 (PDT) Received: from bsd.planetwe.com (bsd.planetwe.com [64.182.69.158]) by wormhole.bluestar.net (8.10.1/8.10.1) with ESMTP id e8CNegN24036 for ; Tue, 12 Sep 2000 18:40:42 -0500 (CDT) Received: (from steve@localhost) by bsd.planetwe.com (8.9.3/8.9.3) id SAA10417 for freebsd-isp@freebsd.org; Tue, 12 Sep 2000 18:40:42 -0500 (CDT) (envelope-from steve) Date: Tue, 12 Sep 2000 18:40:42 -0500 From: Steve Price To: freebsd-isp@freebsd.org Subject: named virtual hosts Message-ID: <20000912184042.D55208@bsd.planetwe.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i X-Operating-System: FreeBSD 5.0-CURRENT i386 Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org I have the following setup for Apache and was trying to reduce some of the duplicate lines. What I have looks something like this. Because this box will be hosting ~400 domains shortly I can't just make the variables global. Well I can make some of them global by using VirtualDocumentRoot and VirtualScriptAlias, but that doesn't work for all the duplicated lines. NameVirtualHost 192.168.21.21 DocumentRoot /home/foo/www ServerName www.foo.com ServerAdmin webmaster@foo.com ErrorLog /home/foo/logs/error.log TransferLog /home/foo/logs/access.log ScriptAlias /cgi-bin/ /home/foo/cgi-bin/ DocumentRoot /home/foo/www ServerName www.foo.com ServerAdmin webmaster@foo.com ErrorLog /home/foo/logs/error.log TransferLog /home/foo/logs/access.log ScriptAlias /cgi-bin/ /home/foo/cgi-bin/ SSLEngine on SSLCertificateFile /home/foo/ssl/ssl.crt SSLCertificateKeyFile /home/foo/ssl/ssl.key What I'd like to be able to do is something like this instead. NameVirtualHost 192.168.21.21 DocumentRoot /home/foo/www ServerName www.foo.com ServerAdmin webmaster@foo.com ErrorLog /home/foo/logs/error.log TransferLog /home/foo/logs/access.log ScriptAlias /cgi-bin/ /home/foo/cgi-bin/ # The following will not work. # # SSLEngine on # SSLCertficateFile /home/foo/ssl/ssl.crt # SSLCertficateKeyFile /home/foo/ssl/ssl.key # Any suggestions? Thanks. -steve To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message