httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andy Canfield <andycanfi...@yandex.com>
Subject Re: [users@httpd] localhost Forbidden
Date Sun, 04 May 2014 08:42:27 GMT
If any of you are following this thread (I have seen no replies), I
think I found the monster:

In the file /etc/apache2/apache2.conf, under Apache 2.4, there is this
chunk of code:
<Directory />
        Options FollowSymLinks
        AllowOverride None
        Require all denied
</Directory>
This was NOT present under Apache 2.2. Since this file is read before
Apache reads any of the site-specific configuration files, the result
seems to be that no virtual host can allow users to access it's document
root. The above lines, being in the global config file, apparently apply
to all hosts everywhere.

If I am wrong please correct me; maybe there is a more proper way to do it.

On 04/30/2014 01:41 PM, Andy Canfield wrote:
> I am upgrading my notebook from 32-bit Ubuntu 12.04 with Apache 2.2(?),
> to 64-bit Ubuntu 14.04 with Apache 2.4.
>
> The thing is insane. It's gotten the point that web pages which require
> a user name and password work, but web pages that let anyone access them
> give me a "403: Forbidden" error. This is based on configuration files
> exactly retained from Apache2 2.2.
>
> As a bare minimum test I have:
> /etc/apache2/sites-enabled/default is a symbolic link to
> /etc/apache2/sites-available/default which is a symbolic link to
> /etc/apache2/sites-available/default-test which is a zero length file.
> This gives me the 403:Forbidden error.
> So apparently authorization of some kind is mandatory now.
>
> Can you point me to any sample default (localhost) config file that I
> can copy that lets ANY user access the localhost site? From there I can
> figure out how to adapt it to my needs.
>
> Thank you.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>
> .
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message