From owner-freebsd-questions@FreeBSD.ORG Fri Mar 12 10:08:33 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 60B6C16A4CE for ; Fri, 12 Mar 2004 10:08:33 -0800 (PST) Received: from dyer.circlesquared.com (host217-45-219-83.in-addr.btopenworld.com [217.45.219.83]) by mx1.FreeBSD.org (Postfix) with ESMTP id A650643D31 for ; Fri, 12 Mar 2004 10:08:32 -0800 (PST) (envelope-from peter@circlesquared.com) Received: from circlesquared.com (localhost.petanna.net [127.0.0.1]) i2CICD1J087302; Fri, 12 Mar 2004 18:12:23 GMT (envelope-from peter@circlesquared.com) Message-ID: <4051FD7D.2090600@circlesquared.com> Date: Fri, 12 Mar 2004 18:12:13 +0000 From: Peter Risdon User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.5b) Gecko/20031102 X-Accept-Language: en-us, en MIME-Version: 1.0 To: John DeStefano References: <20040312180411.27523.qmail@web40602.mail.yahoo.com> In-Reply-To: <20040312180411.27523.qmail@web40602.mail.yahoo.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit cc: freebsd-questions@freebsd.org Subject: Re: vhosts X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Mar 2004 18:08:33 -0000 John DeStefano wrote: >My dear, fellow BSD enthusiasts, >I realize this is not an isolated BSD question, but I know many of you >use apache, and I wonder if this is a problem you might quickly >recognize, or if another configuration file might be worth looking at. > >I'm trying to host two domains on one box with one IP (both LAN and >WAN). When a user tries to visit any of the server aliases for the >second Vhost, they are always brought to the first host instead. >Note: I'm forwarding WAN port 10101 to LAN port 80, but I don't think >that has an effect here. > >The relevent section of my httpd.conf file: > >#NameVirtualHost *:80 > > Uncomment this. PWR. ># ># VirtualHost example: ># Almost any Apache directive may go into a VirtualHost container. ># The first VirtualHost section is used for requests without a known ># server name. ># ># ># ServerAdmin webmaster@dummy-host.example.com ># DocumentRoot /www/docs/dummy-host.example.com ># ServerName dummy-host.example.com ># ErrorLog /var/log/dummy-host.example.com-error_log ># CustomLog /var/log/dummy-host.example.com-access_log common ># >NameVirtualHost *:80 > > >ServerName www.thedestefanos.com >ServerAlias thedestefanos.com *.thedestefanos.com >DocumentRoot /usr/www > > > >ServerName www.thechocolateshack.com >ServerAlias thechocolateshack.com *.thechocolateshack.com >chocolateshack.com *.chocolateshack.com >DocumentRoot /usr/www/thechocolateshack > > >Thanks very much for your help, as always. >~John > >__________________________________ >Do you Yahoo!? >Yahoo! Search - Find what you’re looking for faster >http://search.yahoo.com >_______________________________________________ >freebsd-questions@freebsd.org mailing list >http://lists.freebsd.org/mailman/listinfo/freebsd-questions >To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" > > > >