From owner-freebsd-questions@FreeBSD.ORG Wed May 5 09:14:46 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 EDAF016A4CE for ; Wed, 5 May 2004 09:14:46 -0700 (PDT) Received: from mister.mcgoonet.com (mcgoonet.com [199.245.97.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id 108E343D53 for ; Wed, 5 May 2004 09:14:46 -0700 (PDT) (envelope-from mark@node.to) Received: from [10.0.0.5] (p-5.eease.com [216.52.200.55]) by mister.mcgoonet.com (8.12.10/8.12.9) with ESMTP id i45GEgJB009637 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NO); Wed, 5 May 2004 16:14:43 GMT (envelope-from mark@node.to) In-Reply-To: <40990E31.5030201@daleco.biz> References: <008901c432af$531bc150$0100000a@reddwarf> <40990E31.5030201@daleco.biz> Mime-Version: 1.0 (Apple Message framework v613) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: <51049A65-9EAF-11D8-9655-000D93C0E29E@node.to> Content-Transfer-Encoding: 7bit From: mark Date: Wed, 5 May 2004 12:14:42 -0400 To: freebsd-questions@freebsd.org X-Mailer: Apple Mail (2.613) cc: dingham@opencominc.com Subject: Re: Newbie question regarding Virtual Hosts setup 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: Wed, 05 May 2004 16:14:47 -0000 On May 5, 2004, at 11:54 AM, Kevin D. Kinsey, DaleCo, S.P. wrote: > David H. Ingham wrote: > >> Hopefully, a simple question. >> >> >> I have set up a FreeBSD server to develop a web app for a client. >> >> my system is: >> >> >> FreeBSD Version 5.2 >> >> Apache Version 2.0.47 >> >> MySQL Version 4.0.16 >> >> MySQLCC Version 0.9.3 >> >> PHP Version 4.3.3 >> In your httpd.conf, set Listen 0.0.0.0:80 I think its defaulting to only listen for localhost. >> >> Now I am able to create the pages, (using Quanta 3.1.4).but I cannot >> view >> them >> from anywhere except the FreeBSD box. >> >> >> Before I upgraded from FreeBSD 4.9 to 5.2, I could get to the site >> from my >> W2K system, >> using a VirtualHost setting and browsing to >> http://10.0.0.27:5000/login.php >> >> > > Forgive me for not answering your question directly; > I'm going to suggest something else; it's possibly better, > and will eliminate a few issues regarding your network > setup in general: > > Why not try name-based virtual hosting? Set up > the following in httpd.conf and restart Apache: > > > # > # Use name-based virtual hosting. > # > NameVirtualHost *:80 > > # 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. > # > > ServerName my.examplesite.net > DocumentRoot /path/to/mydocs > ServerAdmin me@myhost > # whatever else, log files, etc > > > Then set the hosts files on both server and > clients (esp. clients) something like: > > # Dummy entries for intranet and test sites > > 10.0.0.27 my.examplesite.net > 10.0.0.27 my.otherexample.org > > Access the sites using the names you've > assigned... > > http://my.examplesite.net/login.php > > HTH, > > Kevin Kinsey > DaleCo, S.P. > _______________________________________________ > 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" >