5

Httpd Auth login restriction

view full story
linux-howto

http://serverfault.com – I have problem with Authorization in httpd. when I connect to http:/user1 the login screen pop up and user1,user2 can login and show the user1's data. how can I create a rule that user1 can only browse user1 folder, and other users can only login to their own folder ? thanks User list in home folder /home/user1 /home/user2 vi /etc/httpd/.htpasswd user1:$apr1$NWoTku5D$frFdpU6Y9eoZ4y1KZVGa60 user2:5D$frFdpU6Y9eoZ4y1KZVGa60$apr1$NWoTku vi /etc/httpd/conf/httpd.conf AllowOverride AuthConfig AuthType basic AuthName "Media Zone" AuthUserFile /etc/httpd/.htpasswd Require valid-user (HowTos)