Forum

Redirecting based on authentication credentials?

August
24 August 2012, 15:58
Hiawatha version: hiawatha-8.4.tar.gz
Operating System: Linux

Is Hiawatha able to redirect each user to their own directory based on their authentication credentials?
For example user Jack authenticates and is redirected to webserverroot/Jack/index.html while
user Jill would get webserverroot/Jill/index.html after authentication.

Prerequisites:
The server is only available on one IP address over the SSL port.
Users type just the IP address to contact the server without directory pathes in the URL.
Hugo Leisink
24 August 2012, 16:04
No, but a simple CGI can do that for you. Setup HTTP authentication and let the CGI return a HTTP 301 error with a Location HTTP header. The user that was logged in can be found in the REMOTE_USER environment setting.
This topic has been closed.