|
发表于 2005-10-21 05:56:57
|
显示全部楼层
Post by zaiwen
I am configuring http server. Everything works fine, but there is one question about the variable "UserDir".
1. Suppose I have user1 and user2. Create public_html under both /home/user1 and /home/user2. Both ~userid is 711 and both public_html is 755. Add index.html in both directories.
2. In /etc/httpd/conf/httpd.conf, enable UserDir only for user1:
UserDir enabled user1
UserDir public_html
3. Open firefox browser.
http://localhost/~user1
--> it works fine. OK.
http://localhost/~user2
-->it also works!!!! The content of the index.html displays. Why???? I think user2 should NOT see his file, since he is NOT on the userlist....
It seems a arequest to ~userid will work as long as this user has the UserDir directory public_html and he doesn't need to be on the UserDir userlist.....
Do I miss anything??????? Very confused....
Put abefore the enabled directive. |
|