public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Joseph <syscon780@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] [SOLVED] apache - virtual host not working
Date: Mon, 12 Dec 2011 00:21:27 -0700	[thread overview]
Message-ID: <20111212072127.GN3810@syscon4.inet> (raw)
In-Reply-To: <CAGF8hssVC3ChVUFCxqrtxXpNGJZy0asQLLTjRKUFOauW8DFrLQ@mail.gmail.com>

On 12/12/11 02:03, Matthew Finkel wrote:
>   On Mon, Dec 12, 2011 at 1:23 AM, Joseph <syscon780@gmail.com> 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.
>     <Directory />
>       Options FollowSymLinks
>       AllowOverride None
>       Order deny,allow
>       Deny from all
>     </Directory>
>
>    
>   Is there a reason you're giving access to / ?

No the above statement actually prevent access, am I correct?

Thanks folks, SOLVED!

Another lesson learned.
I went for easy way out, tar.gz /var/* directory copy it to another machine.

Mistake #1
Extracted the file on the other machine as user (mistake #1) all the owner 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!

-- 
Joseph



  parent reply	other threads:[~2011-12-12  7:20 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-12-12  6:23 [gentoo-user] apache - virtual host not working Joseph
2011-12-12  7:01 ` J. Roeleveld
2011-12-12  7:03 ` Matthew Finkel
2011-12-12  7:12   ` J. Roeleveld
2011-12-12  7:21   ` Joseph [this message]
2011-12-12  7:26     ` [gentoo-user] [SOLVED] " J. Roeleveld
2011-12-12  7:56       ` Matthew Finkel
2011-12-12  9:22       ` Neil Bothwick

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20111212072127.GN3810@syscon4.inet \
    --to=syscon780@gmail.com \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox