Skip to content

Requests rewritten using mod_rewrite get blocked with error "Request is a replay" #114

@nscheer

Description

@nscheer

When using mod_rewrite to redirect all incoming requests to a single resource (i.e. index.php), the requests get blocked with the following error message:

[Tue Dec 06 10:26:20.901557 2016] [auth_gssapi:error] [pid 7551:tid 140581023987456] [client 172.16.37.37:49833] gss_accept_sec_context() failed: [Unspecified GSS failure. Minor code may provide more information (Request is a replay)]

The test system is a CentOS 7 x64 (CentOS Linux release 7.2.1511) using apache 2.4.6 event mpm and version 1.4.1 of mod_auth_gssapi.

The vhost configuration is as follows:

<VirtualHost 172.16.37.101:*>
    ServerName myserver.local

    DocumentRoot /var/www/htdocs
    
    AddHandler fcgid-script .php
    
    <Directory /var/www>
        Options FollowSymlinks ExecCGI
        FCGIWrapper /var/www/fcgi/php-fcgi-wrapper .php
        
        Require all granted
    </Directory>

    <Location />
        AuthType GSSAPI
        AuthName "SSO-Login"
        
        GssapiLocalName on
        GssapiCredStore keytab:/var/www/dummy.keytab
        
        Require valid-user
        
        RewriteEngine on
        RewriteCond %{REQUEST_FILENAME} !-d
        RewriteCond %{REQUEST_FILENAME} !-f
        RewriteRule . /index.php [L]
    </Location>
</VirtualHost>

Both, the gssapi configuration and the rewrite rules work fine for themselves but not in conjunction.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions