From owner-freebsd-questions Wed Jul 29 17:09:44 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id RAA08716 for freebsd-questions-outgoing; Wed, 29 Jul 1998 17:09:44 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from resnet.uoregon.edu (resnet.uoregon.edu [128.223.144.32]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id RAA08677 for ; Wed, 29 Jul 1998 17:09:31 -0700 (PDT) (envelope-from dwhite@resnet.uoregon.edu) Received: from localhost (dwhite@localhost) by resnet.uoregon.edu (8.8.5/8.8.8) with SMTP id QAA23967; Wed, 29 Jul 1998 16:37:08 -0700 (PDT) (envelope-from dwhite@resnet.uoregon.edu) Date: Wed, 29 Jul 1998 16:37:08 -0700 (PDT) From: Doug White To: charlespeters@chickenbean.com cc: questions@FreeBSD.ORG Subject: Re: Virtual hosting In-Reply-To: <002501bdbb2f$c6742780$20710418@ci1000971-c.sptnbrg1.sc.home.c om> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Wed, 29 Jul 1998 charlespeters@chickenbean.com wrote: > I have set up a 2.2.6 server, and have set up a virtual host by placing the > following commands in the rc.conf file: > > ifconfig_de0="inet 999.999.999.50 netmask 255.255.255.0" > ifconfig_de0_alias0="sampledomain.org" > > I can now 'ping sampledomain.org' succesfully. The problem is when I access > www.sampledomain.org, it points my browser to the 999.999.999.50 site, but > that's what I would expect it to do. My question is how do I set up my > system so that when a users browses to www.sampledomain.org, his browser > actually points to a particular sub-directory on the server. Use the directive with Apache. See www.apache.org for documentation. > Also, I need to accomplish the same type of placement into a > predetermined subdirectory when a user logs into ftp.sampledomain.org > or telnet sampledomain.org. ftpd supports this, see the ftpd manpage. Doug White | University of Oregon Internet: dwhite@resnet.uoregon.edu | Residence Networking Assistant http://gladstone.uoregon.edu/~dwhite | Computer Science Major To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message