From owner-freebsd-questions Wed Jul 29 13:36:33 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id NAA22207 for freebsd-questions-outgoing; Wed, 29 Jul 1998 13:36:33 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from chickenbean.ais-gwd.com (chickenbean.com [205.160.97.50]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id NAA21944 for ; Wed, 29 Jul 1998 13:35:52 -0700 (PDT) (envelope-from charlespeters@chickenbean.com) From: charlespeters@chickenbean.com Received: from ci1000971-c.sptnbrg1.sc.home.com (charles@ci1000971-c.sptnbrg1.sc.home.com [24.4.113.32]) by chickenbean.ais-gwd.com (8.8.8/8.8.8) with SMTP id QAA03319 for ; Wed, 29 Jul 1998 16:41:33 -0400 (EDT) (envelope-from charlespeters@chickenbean.com) To: Subject: Virtual hosting Date: Wed, 29 Jul 1998 16:30:50 -0400 Message-ID: <002501bdbb2f$c6742780$20710418@ci1000971-c.sptnbrg1.sc.home.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook 8.5, Build 4.71.2173.0 Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V4.72.2106.4 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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. 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. Point me to a resource, and I think that I can find my way from there. Thanks, Charles charlespeters@chickenbean.com charlespeters@tecpro.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message