apache doc folder permissions problem

Bill Cole macportsusers-20171215 at billmail.scconsult.com
Sun Jun 13 16:21:38 UTC 2021


On 2021-06-13 at 11:47:53 UTC-0400 (Sun, 13 Jun 2021 11:47:53 -0400)
Murray Eisenberg <murrayeisenberg at gmail.com>
is rumored to have said:

> ls -ld Sites
> drwxr-xr-x@ 18 me  staff  576 Feb 27 10:37 Sites

4 thoughts:

1. The '@' indicating the existence of extended attributes could be 
overriding the '+' that is shown on files with extended ACLs, so any 
level in the directory tree COULD have an ACL blocking the webserver 
from reading the files or scanning the directories. Check with 'ls -le' 
to be sure. This would be a simple but unlikely cause of the problem.

2. Check the error logs for details of the failure. There is a 
vhost-specific error log defined, but there should also be a server-wide 
error log which may contain illuminating entries.

3. Check the main httpd.conf for Directory or Location directives that 
may be interfering with the Directory directives in the VirtualHost 
definition.

4. Make sure you don't have anything automatically 'upgrading' you to 
HTTPS. This can be in the server config or in a browser setting.

>> On 12 Jun2021, at 8:37 PM, Jeff Greenberg 
>> <listmail.ayendesigns at gmail.com> wrote:
>>
>> How about the permissions on the Sites folder?
>>
>> On Jun 12, 2021, at 20:24, Murray Eisenberg 
>> <murrayeisenberg at gmail.com> wrote:
>>
>> For the Macports apache2 installation, I’m using a non-default 
>> location for my web sites. The httpd.conf includes a 
>> httpd-vhosts.conf file, and the latter includes entries such as:
>>
>> <VirtualHost *:80>
>>     DocumentRoot "/Users/me/Sites/MyHomePage"
>>     ServerName MyHomePage.local
>>     ServerAlias www.MyHomePage.local <http://www.myhomepage.local/>
>>     ErrorLog  "var/log/apache2/me-MyHomePageerror_log"
>>     CustomLog "var/log/apache2/me-MyHomePage-access_log" common
>>     <Directory /Users/murray/Sites/MyHomePage>
>>        Options Indexes FollowSymLinks
>>        Require all granted
>>    </Directory>
>> </VirtualHost>
>>
>> And in my /private/etc/hosts I include the lines:
>>
>> 127.0.0.1	localhost
>> 255.255.255.255	broadcasthost
>> ::1             localhost
>> fe80::1%lo0	localhost
>> 127.0.0.1	me-html.local
>> 127.0.0.1	MyHomePage.local
>>
>> When I start apache and try to open the site MyHomePage.local, i get 
>> error:
>>
>> 	Forbidden You don't have permission to access this resource.
>>
>> The permissions on /Users/me/Sites/MyHomePage are:
>>
>> 	drwxr-xr-x@ 92 me  staff 2944 Apr 10 2015 MyHomePage
>>
>> and the permissions for /Users/me/Sites/MyHomePage/index.html are:
>>
>> 	-rw-r--r--@ 1 me  staff 8331 Apr 10 2015 index.html
>>
>> What’s wrong?


-- 
Bill Cole
bill at scconsult.com or billcole at apache.org
(AKA @grumpybozo and many *@billmail.scconsult.com addresses)
Not Currently Available For Hire


More information about the macports-users mailing list