From owner-freebsd-questions Fri Apr 20 7:25:46 2001 Delivered-To: freebsd-questions@freebsd.org Received: from everest.wananchi.com (everest.wananchi.com [62.8.64.4]) by hub.freebsd.org (Postfix) with ESMTP id 92E8037B423 for ; Fri, 20 Apr 2001 07:25:37 -0700 (PDT) (envelope-from wash@everest.wananchi.com) Received: from wash by everest.wananchi.com with local (Exim 3.22 #2) id 14qbpK-000EMX-00; Fri, 20 Apr 2001 17:24:02 +0300 Date: Fri, 20 Apr 2001 17:24:02 +0300 From: Odhiambo Washington To: FreeBSD Cc: FBSD-Q Subject: Re: Apache, Vhost, and Jail Message-ID: <20010420172402.F30960@everest.wananchi.com> Mail-Followup-To: Odhiambo Washington , FreeBSD , FBSD-Q References: <20010420053742.C88982-100000@Amber.XtremeDev.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="XIiC+We3v3zHqZ6Z" Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010420053742.C88982-100000@Amber.XtremeDev.com>; from "FreeBSD" on Fri, Apr 20, 2001 at 05:46:04AM -0600 X-Operating-System: FreeBSD everest.wananchi.com 4.3-RC FreeBSD 4.3-RC X-Mailer: Mutt http://www.mutt.org/ X-Location: Nairobi, KE, East Africa. X-Uptime: 5:23PM up 3 days, 23:47, 3 users, load averages: 0.16, 0.40, 0.39 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG --XIiC+We3v3zHqZ6Z Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable * FreeBSD [20010420 14:45]: writing on the subject = 'Apache, Vhost, and Jail' FreeBSD> Hey all. I have a Jail setup that I would like apache (running in = the host FreeBSD> environment) to serve pages for. I have names setup as: a bit out of topic but may I ask how you start your jail after a reboot of the host system. TIA FreeBSD>=20 FreeBSD> jail.mydomain.org FreeBSD> host.mydomain.org FreeBSD>=20 FreeBSD> Apache right now serves pages for host.mydomain.org fine, but when= I went FreeBSD> to try and setup namebased vhost, all the documentations I've read= refers FreeBSD> to instances such as: FreeBSD>=20 FreeBSD> www.foo.bar.com FreeBSD> www.bar.com FreeBSD>=20 FreeBSD> Can apache's namebased vhost do it by host only? If it can, then I= can set FreeBSD> the documentroot to jail/usr/local/www/. But I haven't been succes= sful, FreeBSD> so far I have this in my httpd.conf: FreeBSD>=20 FreeBSD> NameVirtualHost * FreeBSD>=20 FreeBSD> # Host FreeBSD> FreeBSD> DocumentRoot /usr/local/www FreeBSD> ServerName host.mydomain.org FreeBSD> FreeBSD>=20 FreeBSD> # Jail FreeBSD> FreeBSD> DocumentRoot /jail/usr/local/www FreeBSD> ServerName jail.mydomain.org FreeBSD> FreeBSD>=20 FreeBSD>=20 FreeBSD> Of course, I have the public IP in place of 123.123.123.123, and FreeBSD> resolvable domains for both jail and host on the internet. But whe= n I try FreeBSD> going to http://host.mydomain.org, I get the jail's homepage?! Any= where I FreeBSD> go using host.mydomain.org, it ends up in the jail document path. = Have I FreeBSD> missed something? Any help would be appreciated. Thank you. FreeBSD>=20 FreeBSD>=20 FreeBSD> To Unsubscribe: send mail to majordomo@FreeBSD.org FreeBSD> with "unsubscribe freebsd-questions" in the body of the message -Wash -- Odhiambo Washington Wananchi Online Ltd., wash@wananchi.com 1st Flr Loita Hse Tel: 254 2 313985 Loita Street., Fax: 254 2 313922 PO Box 10286, 00100-NAIROBI,KE. "You are old," said the youth, "as I mentioned before, And make errors few people could bear; You complain about everyone's English but yours -- Do you really think this is quite fair?" "I make lots of mistakes," Father William declared, "But my stature these days is so great That no critic can hurt me -- I've got them all scared, And to stop me it's now far too late." --XIiC+We3v3zHqZ6Z Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.4 (FreeBSD) Comment: For info see http://www.gnupg.org iD8DBQE64EaCn7LIsuxjem8RAv2eAJ9a190nCVW0QtwXTc4eVKLdO3xPOQCfTV5/ ygqDS5Js8U7EeMX5qD2irFg= =nXyZ -----END PGP SIGNATURE----- --XIiC+We3v3zHqZ6Z-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message