Date: Fri, 20 Apr 2001 17:24:02 +0300 From: Odhiambo Washington <wash@wananchi.com> To: FreeBSD <freebsd@XtremeDev.com> Cc: FBSD-Q <freebsd-questions@freebsd.org> Subject: Re: Apache, Vhost, and Jail Message-ID: <20010420172402.F30960@everest.wananchi.com> In-Reply-To: <20010420053742.C88982-100000@Amber.XtremeDev.com>; from "FreeBSD" on Fri, Apr 20, 2001 at 05:46:04AM -0600 References: <20010420053742.C88982-100000@Amber.XtremeDev.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--XIiC+We3v3zHqZ6Z Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable * FreeBSD <freebsd@XtremeDev.com> [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> <VirtualHost 123.123.123.123> FreeBSD> DocumentRoot /usr/local/www FreeBSD> ServerName host.mydomain.org FreeBSD> </VirtualHost> FreeBSD>=20 FreeBSD> # Jail FreeBSD> <VirtualHost 123.123.123.123> FreeBSD> DocumentRoot /jail/usr/local/www FreeBSD> ServerName jail.mydomain.org FreeBSD> </VirtualHost> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010420172402.F30960>