From owner-freebsd-isp Mon Dec 6 13:36:35 1999 Delivered-To: freebsd-isp@freebsd.org Received: from dns.sonntag.org (dns.sonntag.org [216.140.186.114]) by hub.freebsd.org (Postfix) with ESMTP id 6329A14D1F for ; Mon, 6 Dec 1999 13:36:29 -0800 (PST) (envelope-from aaron@sonntag.org) Received: from WIN2K1 (st84042.nobell.com [216.140.184.42]) by dns.sonntag.org (8.9.3/8.9.3) with SMTP id PAA09624; Mon, 6 Dec 1999 15:36:38 -0600 (CST) (envelope-from aaron@sonntag.org) From: "Aaron Sonntag" To: "Keith Ward" , "Aaron Sonntag" Cc: Subject: RE: apache vhost question Date: Mon, 6 Dec 1999 15:37:54 -0600 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.5600 Importance: Normal In-Reply-To: Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org thank you keith, based upon what you said and the apache documentation the following vhost entry worked for me and should work for anyone else too ;-) note the ServerAlias line... that was the key. Also note the wildcard for the ServerName was not a problem and allows Apache to handle anything.terraneclipse.net thanks again for the help everyone! Aaron Sonntag ServerName *.terraneclipse.net ServerAlias www.terraneclipse.com *.terraneclipse.net ServerAdmin hostmaster@sonntag.org DocumentRoot /home/tec_www/public_html CustomLog /home/tec_www/logs/access_log common ErrorLog /home/tec_www/logs/error_log ScriptLog /home/tec_www/logs/script_log TransferLog /home/tec_www/logs/transfer_log -----Original Message----- From: owner-freebsd-isp@FreeBSD.ORG [mailto:owner-freebsd-isp@FreeBSD.ORG]On Behalf Of Keith Ward Sent: Sunday, December 05, 1999 11:54 PM To: Aaron Sonntag Cc: freebsd-isp@FreeBSD.ORG Subject: Re: apache vhost question You need a FQDN for the ServerName on the second virtual host. As far as I know, the wildcard can only be used for the ServerAlias directive. i.e.: ServerName www.terraneclipse.net ServerAlias *.terraneclipse.net ... Keith According to the writings of Aaron Sonntag > > When I goto the following VHOST I have no problems > www.terraneclipse.com > > ServerName www.terraneclipse.com > ServerAdmin hostmaster@sonntag.org > DocumentRoot /home/tec_www/public_html > CustomLog /home/tec_www/logs/access_log common > ErrorLog /home/tec_www/logs/error_log > ScriptLog /home/tec_www/logs/script_log > TransferLog /home/tec_www/logs/transfer_log > ScriptAlias /cgi-bin/ /home/tec_www/cgi-bin/ > > but when I goto another VHOST that I want to use the same directories as the > .com version I get the error below > www.terraneclipse.net > > ServerName *.terraneclipse.net > ServerAdmin hostmaster@sonntag.org > DocumentRoot /home/tec_www/public_html > CustomLog /home/tec_www/logs/access_log common > ErrorLog /home/tec_www/logs/error_log > ScriptLog /home/tec_www/logs/script_log > TransferLog /home/tec_www/logs/transfer_log > ScriptAlias /cgi-bin/ /home/tec_www/cgi-bin/ > > [error] > Forbidden > You don't have permission to access / on this server. > > Apache/1.3.9 Server at www.sonntag.org Port 80 > [error] > > any ideas? > Thank you, > Aaron > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-isp" in the body of the message > -- Keith Ward N5OOD kward@Panther.net ...!rwsys!rowdy!kward =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= I don't suffer from insanity, I enjoy every minute of it. =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message