From owner-freebsd-questions@FreeBSD.ORG Fri Mar 16 18:40:03 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id DCD761065672 for ; Fri, 16 Mar 2012 18:40:03 +0000 (UTC) (envelope-from paul@ifdnrg.com) Received: from ifdnrg30.ifdnrg.com (outbound.ifdnrg.com [193.200.98.138]) by mx1.freebsd.org (Postfix) with ESMTP id 7CCC08FC20 for ; Fri, 16 Mar 2012 18:40:02 +0000 (UTC) Received: from [192.168.1.86] (93-97-172-73.zone5.bethere.co.uk [93.97.172.73]) (authenticated bits=0) by ifdnrg30.ifdnrg.com (8.14.5/8.14.4) with ESMTP id q2GIdt1w072086 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO); Fri, 16 Mar 2012 18:39:56 GMT (envelope-from paul@ifdnrg.com) Message-ID: <4F6388F4.1020503@ifdnrg.com> Date: Fri, 16 Mar 2012 18:39:48 +0000 From: Paul Macdonald User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:11.0) Gecko/20120312 Thunderbird/11.0 MIME-Version: 1.0 To: David Hughes References: <4F638434.3090207@googlemail.com> In-Reply-To: <4F638434.3090207@googlemail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: Virtual Hosts & Subdomains X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Mar 2012 18:40:03 -0000 On 16/03/2012 18:19, David Hughes wrote: > Hi all, > > Forgive me if this is slightly off-topic, but I wonder if I could > trouble you for some advice about setting up website subdomains with > Apache. I currently have a website up and running on a jailed VPS; > I've been trying to set up subdomains so that one might navigate to a > certain area of the site by using a URL of the form blog.mywebsite.net > rather than mywebsite.net/blog. > > I've tried reading the official Apache documentation and a number of > tutorials that I've found online, but nothing I've tried has worked so > far. Do Virtual Hosts behave differently if they're within a jail? Or > do I need some sort of DNS registration for subdomains? I've been > trying to figure it out by myself, with little success so far - I'm > quite new to this. > If you post a sample virtualhost config people can comment and point out suggestions.. (there's a couple of ways to do it.) yes, you need subdomains to have DNS entries ( or hosts file entries at the least). Jails will be irrelevant, other than ensuring that the IP for the virtual host, and the jailed apache is correct/reachable. Paul. > Thanks for your help, > > David > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org" -- ------------------------- Paul Macdonald IFDNRG Ltd Web and video hosting ------------------------- t: 0131 5548070 m: 07970339546<