From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1Ra0Hx-0001bB-JG for garchives@archives.gentoo.org; Mon, 12 Dec 2011 07:27:05 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 402D321C368; Mon, 12 Dec 2011 07:26:55 +0000 (UTC) Received: from smtpq2.gn.mail.iss.as9143.net (smtpq2.gn.mail.iss.as9143.net [212.54.34.165]) by pigeon.gentoo.org (Postfix) with ESMTP id 40AD621C095 for ; Mon, 12 Dec 2011 07:26:02 +0000 (UTC) Received: from [212.54.34.140] (helo=smtp9.gn.mail.iss.as9143.net) by smtpq2.gn.mail.iss.as9143.net with esmtp (Exim 4.71) (envelope-from ) id 1Ra0Gv-0002jj-G5 for gentoo-user@lists.gentoo.org; Mon, 12 Dec 2011 08:26:01 +0100 Received: from 5ed027d6.cm-7-1a.dynamic.ziggo.nl ([94.208.39.214] helo=data.antarean.org) by smtp9.gn.mail.iss.as9143.net with esmtp (Exim 4.71) (envelope-from ) id 1Ra0Gv-00029c-56 for gentoo-user@lists.gentoo.org; Mon, 12 Dec 2011 08:26:01 +0100 Received: from localhost (localhost [127.0.0.1]) by data.antarean.org (Postfix) with ESMTP id 4683C2B72 for ; Mon, 12 Dec 2011 08:26:57 +0100 (CET) X-Virus-Scanned: amavisd-new at antarean.org Received: from data.antarean.org ([127.0.0.1]) by localhost (data.antarean.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id EDPrK69sUVdD for ; Mon, 12 Dec 2011 08:26:55 +0100 (CET) Received: from www.antarean.org (net.antarean.org [10.10.11.5]) by data.antarean.org (Postfix) with ESMTP id 7A675173D for ; Mon, 12 Dec 2011 08:26:55 +0100 (CET) Received: from 62.132.204.84 (SquirrelMail authenticated user joost) by www.antarean.org with HTTP; Mon, 12 Dec 2011 08:26:55 +0100 Message-ID: In-Reply-To: <20111212072127.GN3810@syscon4.inet> References: <20111212062356.GM3810@syscon4.inet> <20111212072127.GN3810@syscon4.inet> Date: Mon, 12 Dec 2011 08:26:55 +0100 Subject: Re: [gentoo-user] [SOLVED] apache - virtual host not working From: "J. Roeleveld" To: gentoo-user@lists.gentoo.org User-Agent: SquirrelMail/1.4.21 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 X-Priority: 3 (Normal) Importance: Normal Content-Transfer-Encoding: quoted-printable X-Ziggo-spambar: / X-Ziggo-spamscore: -0.5 X-Ziggo-spamreport: BAYES_20=-0.001,KHOP_DYNAMIC=0.001,RDNS_DYNAMIC=0.982,RP_MATCHES_RCVD=-1.457 X-Ziggo-Spam-Status: No X-Spam-Status: No X-Spam-Flag: No X-Archives-Salt: 2bfbcfe2-dabe-4a45-b6c3-a1472983a7b3 X-Archives-Hash: a3f86ebe40f88aee75c5731e99828aa0 On Mon, December 12, 2011 8:21 am, Joseph wrote: > On 12/12/11 02:03, Matthew Finkel wrote: >> On Mon, Dec 12, 2011 at 1:23 AM, Joseph wrote: >> >> In /etc/hosts I have: >> 127.0.0.1 localhost.localdomain localhost mydomain.ca syscon5 >> 10.0.0.100 www.mydomain.ca >> >> If I comment out: #10.0.0.100 www.mydomain.ca >> I can access this domain. >> >> >> By "access", do you mean the website loads without the access >> restriction? >> >> >> >> >> in: modules.d/00_default_settings.conf >> # We configure the "default" to be a very restrictive set of >> features. >> >> Options FollowSymLinks >> AllowOverride None >> Order deny,allow >> Deny from all >> >> >> >> Is there a reason you're giving access to / ? > > No the above statement actually prevent access, am I correct? Yes, you are correct. It prevents access. Configuration in the vhosts-config will add access to the required directories. > Thanks folks, SOLVED! That's good to hear. > Another lesson learned. > I went for easy way out, tar.gz /var/* directory copy it to another > machine. The "-p" option will preserve ownership and permissions. You need to add it to both compressing and extracting. > Mistake #1 > Extracted the file on the other machine as user (mistake #1) all the ow= ner > ship of file got changed to joseph:joseph > > Mistake #2 > I use "meld" to compare the directors and copy missing files and > directories to the destination machine. Meld - does not preserve > owner-ship either. > > The reason it didn't work as .htaccess file were changed to owner ship > root:root and it should be apache:apache. > So the solution was to use "rsync -av" it preserver owner ship and > permission :-/ > > Another lessor learned! We always learn new things. -- Joost