From owner-freebsd-questions Fri Apr 20 4:46:11 2001 Delivered-To: freebsd-questions@freebsd.org Received: from mail.XtremeDev.com (xtremedev.com [216.241.38.65]) by hub.freebsd.org (Postfix) with ESMTP id F305A37B42C for ; Fri, 20 Apr 2001 04:46:05 -0700 (PDT) (envelope-from freebsd@XtremeDev.com) Received: by mail.XtremeDev.com (Postfix, from userid 1007) id CAD6313632; Fri, 20 Apr 2001 05:46:04 -0600 (MDT) Received: from localhost (localhost [127.0.0.1]) by mail.XtremeDev.com (Postfix) with ESMTP id AF0DFD9DB for ; Fri, 20 Apr 2001 05:46:04 -0600 (MDT) Date: Fri, 20 Apr 2001 05:46:04 -0600 (MDT) From: FreeBSD To: Subject: Apache, Vhost, and Jail Message-ID: <20010420053742.C88982-100000@Amber.XtremeDev.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hey all. I have a Jail setup that I would like apache (running in the host environment) to serve pages for. I have names setup as: jail.mydomain.org host.mydomain.org Apache right now serves pages for host.mydomain.org fine, but when I went to try and setup namebased vhost, all the documentations I've read refers to instances such as: www.foo.bar.com www.bar.com Can apache's namebased vhost do it by host only? If it can, then I can set the documentroot to jail/usr/local/www/. But I haven't been successful, so far I have this in my httpd.conf: NameVirtualHost * # Host DocumentRoot /usr/local/www ServerName host.mydomain.org # Jail DocumentRoot /jail/usr/local/www ServerName jail.mydomain.org Of course, I have the public IP in place of 123.123.123.123, and resolvable domains for both jail and host on the internet. But when I try going to http://host.mydomain.org, I get the jail's homepage?! Anywhere I go using host.mydomain.org, it ends up in the jail document path. Have I missed something? Any help would be appreciated. Thank you. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message