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 <syscon...@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


Reply via email to