[Discuss] apache problem
David Kramer
david at thekramers.net
Tue Jan 8 17:45:46 EST 2019
Setting up a Document root of your home directory sounds like an very
bad idea to me. Maybe a subdirectory under it if you can make the files
readable by the Apache user...
On 1/8/19 5:36 PM, Derek Martin wrote:
> On Fri, Jan 04, 2019 at 05:01:37PM -0500, dan moylan wrote:
>> newly installed fc29 from scratch on my laptop -- apache
>> appears to be running ok. chrome displays
>> localhost/welcome.htm just fine, but when i try
>> localhost/moylan/welcome.htm, where welcome.htm is in
>> /home/moylan/www, i get: "you don't have permission to
>> access localhost/moylan/welcome.htm on this server"
> This path seems to imply that your document root is /home, which is
> probably wrong, or perhaps that you've set up some path alias which we
> can't guess for lack of your configuration, and it's somehow wrong.
> You probably wanted this instead:
>
> localhost/~moylan/welcome.htm
>
> Another possibility is that you seem to have an SELinux ACL defined on
> the files (as indicated by the '.' character at the end of the
> permissions in the directory listing), and your SELinux policy is in
> some fashion forbidding access to the files by the web server.
>
> The remaining possibilities, AFAIK, are that your web server's
> configuration does not correctly list the necessary directories or has
> inadequate permissions for them, or that the appropriate apache
> modules for configuring access to user home directories (UserDir) are
> not being loaded or (again) is misconfigured to use some other
> directory than the one you're using, or has incorrect permissions.
>
More information about the Discuss
mailing list