2

I have a website that I has common pages as well as restricted pages. I would like to restrict each page for each user, such that my cong

/var/www/application/user1/user1.html

/var/www/application/user2/user2.html .... for n users.

What kind of authorization module would be suitable? The filesystem permissions are set right. Eg. user2 dir is only accessible by user2.

I did put some effort to make it work for 1 user by specifying required user directive. But that doesn't scale well. I am new to apache confid.

1
  • Are you wanting to restrict editing the files or viewing the files through a browser?
    – Twitch
    Feb 20, 2014 at 20:35

1 Answer 1

0

You'll need to make use of Apache's htpasswd: http://httpd.apache.org/docs/2.2/programs/htpasswd.html

This guide from Apache will step you through editing the .htaccess file and adding user/password access to the various web pages: http://httpd.apache.org/docs/2.2/howto/auth.html

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .