Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 179918 - net-www/apache-2.2.4-r2 missing server-info and server-status
Summary: net-www/apache-2.2.4-r2 missing server-info and server-status
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: High minor (vote)
Assignee: Apache Team - Bugzilla Reports
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks:
 
Reported: 2007-05-26 20:48 UTC by James Bowlin
Modified: 2007-05-27 16:23 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description James Bowlin 2007-05-26 20:48:41 UTC
The server-info section and server-status section were correctly removed from httpd.conf but they should have re-appeared in 00_default_vhost.conf.

Reproducible: Always




I upgraded to Apache-2.2.4-r2 in order to be able to use the latest mod_fcgid. 
I noticed the server-info and server-status sections had disappeared from
httpd.conf.  I tried replacing them with the sections from httpd.conf from the
stable version of Apache (where they worked) but kept getting Forbidden errors
regardless of my Allow and Deny statements.

It turns out that these sections now need to be inside the VirtualHost section
in order to function properly although ExtendedStatus is not allowed in that
section.  I suggest adding the following code to 00_default_vhost.conf so
that server-info and server-status is closer to working right out of the box.

<IfDefine INFO>
    <Location /server-status>
        SetHandler server-status
        Order deny,allow
        Deny from all
        Allow from 127.0.0.1
    </Location>
</IfDefine>

<IfDefine INFO>
    <Location /server-info>
       SetHandler server-info
       Order deny,allow
       Deny from all
       Allow from 127.0.0.1
    </Location>
</IfDefine>
Comment 1 Christian Heim (RETIRED) gentoo-dev 2007-05-26 21:37:30 UTC
(In reply to comment #0)
> The server-info section and server-status section were correctly removed from
> httpd.conf but they should have re-appeared in 00_default_vhost.conf.
>
> I upgraded to Apache-2.2.4-r2 in order to be able to use the latest mod_fcgid. 
> I noticed the server-info and server-status sections had disappeared from
> httpd.conf.  I tried replacing them with the sections from httpd.conf from the
> stable version of Apache (where they worked) but kept getting Forbidden errors
> regardless of my Allow and Deny statements.
> 
> It turns out that these sections now need to be inside the VirtualHost section
> in order to function properly although ExtendedStatus is not allowed in that
> section.  I suggest adding the following code to 00_default_vhost.conf so
> that server-info and server-status is closer to working right out of the box.
> 
> <IfDefine INFO>
>     <Location /server-status>
>         SetHandler server-status
>         Order deny,allow
>         Deny from all
>         Allow from 127.0.0.1
>     </Location>
> </IfDefine>
> 
> <IfDefine INFO>
>     <Location /server-info>
>        SetHandler server-info
>        Order deny,allow
>        Deny from all
>        Allow from 127.0.0.1
>     </Location>
> </IfDefine>

They aren't in httpd.conf because they got moved to a modules.d entry. Try adding -D INFO to APACHE2_OPTS in your /etc/conf.d/apache2. Also remove the declaration you added to your httpd.conf and/or you're vhost configs.
Comment 2 James Bowlin 2007-05-26 22:02:36 UTC
The -D INFO was already in APACHE2_OPTS.  I removed the sections I had added
to the vhost file then I edited the server-* sections in 00_mod_info.conf and
changed:

      Allow from localhost

to

      Allow from 127.0.0.1

which fixed my problem.  I don't know why "localhost" does not work here
but others have reported the same problem.  Thanks for the quick reply,
sorry for bothering you with a non-issue.
Comment 3 Christian Heim (RETIRED) gentoo-dev 2007-05-27 05:53:15 UTC
I've changed the directive in SVN, we'll need to wait for the next bump till it's fixed.
Comment 4 Christian Heim (RETIRED) gentoo-dev 2007-05-27 16:23:46 UTC
(In reply to comment #3)
> I've changed the directive in SVN, we'll need to wait for the next bump till
> it's fixed.

It's in the tree now, as apache-2.2.4-r4.