Redirect page based on authentication

This is a discussion on Redirect page based on authentication within the Linux Web Servers forums, part of the Web Server and Related Forums category; I'm running apache on a Red Hat Linux 9 and I need help to dynamically redirect html pages based ...


Go Back   Usenet Forums > Web Server and Related Forums > Linux Web Servers

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 05-24-2005
weiheon@gmail.com
 
Posts: n/a
Default Redirect page based on authentication

I'm running apache on a Red Hat Linux 9 and I need help to dynamically
redirect html pages based on the user's authentication when the user
logs in. We have a network monitoring site and users are only allowed
to view their own page. I have added the line 'AllowOverride
AuthConfig' under the httpd.conf file and also :-

in users/.htaccess I have allowed for all users
AuthType Basic
AuthName "Restricted Page"
AuthUserFile /export/home/httpd/passwd/mrtg-passwd
require user tom dick harry

in users/tom/.htaccess
AuthType Basic
AuthName "Restricted Page"
AuthUserFile /export/home/httpd/passwd/mrtg-passwd
require user tom

in users/dick/.htaccess
AuthType Basic
AuthName "Restricted Page"
AuthUserFile /export/home/httpd/passwd/mrtg-passwd
require user dick

in users/harry/.htaccess
AuthType Basic
AuthName "Restricted Page"
AuthUserFile /export/home/httpd/passwd/mrtg-passwd
require user harry

The authentication works without any problem, that is I need to log in
as the appropriate user for their respective directories. But instead
of listing all of our customer's name on a page, how do it make the
server redirect the page according to their authentication? Does the
Redirect option help? How do I add the Redirect syntax? Thank you in
advance for any assistance.

W.H.Yap
Systems Administrator
Applied Information Management Services(AIMS), Malaysia

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 03:56 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0