From: "J. Roeleveld" <joost@antarean.org>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] [SOLVED] apache - virtual host not working
Date: Mon, 12 Dec 2011 08:26:55 +0100 [thread overview]
Message-ID: <d6715c61825cc0033d156367dd448cc7.squirrel@www.antarean.org> (raw)
In-Reply-To: <20111212072127.GN3810@syscon4.inet>
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 <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?
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 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!
We always learn new things.
--
Joost
next prev parent reply other threads:[~2011-12-12 7:27 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 ` [gentoo-user] [SOLVED] " Joseph
2011-12-12 7:26 ` J. Roeleveld [this message]
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=d6715c61825cc0033d156367dd448cc7.squirrel@www.antarean.org \
--to=joost@antarean.org \
--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