403 Forbidden on front page with apache 2.4

Bug #1248205 reported by Ole Martin Bjørndalen
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Network Administration Visualized
Fix Released
Low
Morten Brekkevold

Bug Description

Apache says:

    Forbidden
    You don't have permission to access / on this server.

The log file reports:

    AH01630: client denied by server configuration

The problem can be fixed by adding this to apache.conf (or to the file including it):

    <Location />
        Options +ExecCGI
        Require all granted
    </Location>

This will not work in older versions of Apache, as the "Require all granted" syntax was introduced in 2.4.

See:

http://stackoverflow.com/questions/12759854/client-denied-by-server-configuration-while-trying-to-use-git-http-backend-exe

http://httpd.apache.org/docs/current/upgrading.html

(Thanks to Rockj for help with this bug!)

description: updated
description: updated
Revision history for this message
Morten Brekkevold (mbrekkevold) wrote :

Do you see any provisions for automatically only including these config tidbits if the running Apache version happens to be 2.4? I would rather not maintain config files for multple Apache versions unless it becomes really necessary. I would probably want to ship nginx config examples before that :)

Changed in nav:
status: New → Triaged
importance: Undecided → Low
Revision history for this message
Ole Martin Bjørndalen (olemb) wrote :

That's a good idea. It turns out Apache has a directive for this:

    <IfVersion >= 2.4>
        <Location />
            Options +ExecCGI
            Require all granted
        </Location>
    </IfVersion>

There should probably be a comment above this, but I can't think of one at the moment.

Changed in nav:
assignee: nobody → Morten Brekkevold (mbrekkevold)
status: Triaged → In Progress
milestone: none → 4.4.0
Revision history for this message
Morten Brekkevold (mbrekkevold) wrote :
Changed in nav:
status: In Progress → Fix Committed
Changed in nav:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.