Comments (2)
Why you cannot ? more context needed to understand your problem
The authentification module dont do redirect, they return 401 error, is why you must customise 401 error page with apache errordocument.
Errordocument is like alias and dont do redirect and can use only local page served by apache.
https://httpd.apache.org/docs/2.4/en/custom-error.html
To use Dynamique page like PHP page your apache must be configured to serve PHP page with PHP.
Rise the log level of Apache understand why they do not do what they suposed to do.
from apache-authmemcookie-module.
@mcarbonneaux
Thank you for your comments.
I did a lot of things to investigate my problem.
- PHP configuration is correct. If 401 set as "/redirect.php" and this php just sent back 302 header, then works fine.
- Static html file is also works fine.
Only when I use simplesaml php auth memcookie module, it doesn't work expectedly.
- simplesaml php auth memcooie module is here https://github.com/simplesamlphp/simplesamlphp-module-memcookie
And I found the issue that apache set the value of REQUEST_URI env original url.
When the location "/protected/" set for Auth Memcookie and set the ErrorDocument 401 in this location like below.
<Location /protected>
Auth_memCookie...
ErrorDocument 401 /redirect.php
When apache access to the redirect.php the value of REQUEST_URI is "/protected".
Simplesamlphp doesn't work if REQUEST_URI is not the same as the path set as 401.(like simplesaml/module.php/memcookie/auth.php)
The issue is related to simplesamlphp or simplesaml memcookie module so you can close this issue.
from apache-authmemcookie-module.
Related Issues (16)
- Incorrect group verification
- Can't configure HOT 7
- Unable to install on Ubuntu 14.04 & Apache 2.4 HOT 11
- Issue with simplesamlsphp session storage HOT 1
- Session data, improve documentation HOT 5
- Allow setting server variables separately from HTTP headers
- RemoteIP check is not executed on every access HOT 2
- Issues finding libmemache library on RHEL 7 preventing install HOT 1
- Replaying POST Requests HOT 1
- require user authenticates successfully if the current user is unequal ANY of the required users
- group authentication not working HOT 2
- FreeBSD compilation warnings
- Apache 2.4 partial support ? HOT 3
- Thread safe ? HOT 3
- REMOTE_USER not available to mod_rewrite HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from apache-authmemcookie-module.