apache doc folder permissions problem

Murray Eisenberg murrayeisenberg at gmail.com
Sun Jun 13 00:24:25 UTC 2021

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
    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

And in my /private/etc/hosts I include the lines:	localhost	broadcasthost
::1             localhost 
fe80::1%lo0	localhost	me-html.local	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?
Murray Eisenberg			murrayeisenberg at gmail.com
503 King Farm Blvd #101	
Rockville, MD 20850-6667	Mobile (413)-427-5334

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macports.org/pipermail/macports-users/attachments/20210612/b1211272/attachment.htm>

More information about the macports-users mailing list