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 ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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 |