Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mod_auth_token fails to work properly with ProxyPass and RewriteRule directives #16

Open
GoogleCodeExporter opened this issue Apr 22, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

Here are 2 configuration snippets that currently fail to work with 
mod_auth_token:

<Location /protected/>
    AuthTokenSecret        "secret"
    AuthTokenPrefix        /protected/
    AuthTokenTimeout       3600
    ProxyPass              http://127.0.0.1:8000/
</Location>

<Location /protected/>
    AuthTokenSecret        "secret"
    AuthTokenPrefix        /protected/
    AuthTokenTimeout       3600
    RewriteRule            ^(.*)$ http://127.0.0.1:8000/$1 [P,F]
</Location>

The issue is that mod_auth_token currently asks to be slotted before mod_alias, 
but not before other modules.

The attached patch just also adds mod_rewrite and mod_proxy to the list of 
modules that should run after mod_auth_token.

PS, I've taken the liberty of renaming aszPost to aszSucc as this is seems to 
be the standard for the apache 2.2 code base. Feel free to remove this change 
if you do not like it.

Original issue reported on code.google.com by [email protected] on 17 Jan 2011 at 3:52

Attachments:

@GoogleCodeExporter
Copy link
Author

Thanks for reporting that, will be merged.

Original comment by [email protected] on 19 Apr 2011 at 3:02

  • Changed state: Accepted

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant