Skip to content
This repository was archived by the owner on Apr 10, 2025. It is now read-only.
This repository was archived by the owner on Apr 10, 2025. It is now read-only.

pagespeed default config fails to load on 2.4 unless mod_access_compat is loaded #1229

@GuillaumeRossolini

Description

@GuillaumeRossolini

Hi,

The default config for the admin pages fails in pagespeed.conf with:

AH00526: Syntax error on line 345 of /usr/local/apache2/conf/pagespeed.conf
Invalid command 'Order', perhaps misspelled or defined by a module not included in the server configuration

This config is currently:

    <Location /pagespeed_admin>
        Order allow,deny
        Allow from localhost
        Allow from 127.0.0.1
        SetHandler pagespeed_admin
    </Location>
    <Location /pagespeed_global_admin>
        Order allow,deny
        Allow from localhost
        Allow from 127.0.0.1
        SetHandler pagespeed_global_admin
    </Location>

Which is ok for httpd-2.2.x.

For httpd-2.4.x however, it should be something along the lines of:

    <Location /pagespeed_admin>
        <RequireAny>
                Require ip 127.0.0.1
        </RequireAny>
        SetHandler pagespeed_admin
    </Location>
    <Location /pagespeed_global_admin>
        <RequireAny>
                Require ip 127.0.0.1
        </RequireAny>
        SetHandler pagespeed_global_admin
    </Location>

Regards,

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions